fo-libfo-basic

fo-libfo-basic

Functions

#define FO_LIBFO_BASIC_ERROR
GQuark fo_libfo_basic_error_quark ()
gboolean fo_libfo_init ()
gpointer (*FoMalloc) ()
gpointer (*FoRealloc) ()
void (*FoFree) ()
gboolean fo_libfo_init2 ()
gboolean fo_libfo_shutdown ()
FoLibfoContext * fo_libfo_context_new ()
gboolean fo_libfo_format ()

Types and Values

Description

Functions

FO_LIBFO_BASIC_ERROR

#define FO_LIBFO_BASIC_ERROR (fo_libfo_basic_error_quark ())


fo_libfo_basic_error_quark ()

GQuark
fo_libfo_basic_error_quark (void);

Get the error quark for FoLibfo.

If the quark does not yet exist, create it.

Returns

Quark associated with FoLibfo errors.


fo_libfo_init ()

gboolean
fo_libfo_init (void);

Initialise the libfo formatter.

Returns

TRUE if successful.


FoMalloc ()

gpointer
(*FoMalloc) (gsize n_bytes);


FoRealloc ()

gpointer
(*FoRealloc) (gpointer mem,
              gsize n_bytes);


FoFree ()

void
(*FoFree) (gpointer mem);


fo_libfo_init2 ()

gboolean
fo_libfo_init2 (FoMalloc fo_malloc,
                FoRealloc fo_realloc,
                FoFree fo_free);

Initialise the libfo formatter and provide functions for allocating, reallocating, and freeing memory.

Parameters

fo_malloc

Function that allocates memory.

 

fo_realloc

Function that reallocates memory.

 

fo_free

Function that frees memory.

 

Returns

TRUE if successful.


fo_libfo_shutdown ()

gboolean
fo_libfo_shutdown (void);

Shutdown the libfo formatter.

Returns

TRUE if successful.


fo_libfo_context_new ()

FoLibfoContext *
fo_libfo_context_new (void);

Creates a new FoLibfoContext initialized to default value.

Returns

The new FoLibfoContext.


fo_libfo_format ()

gboolean
fo_libfo_format (const gchar *xml,
                 const gchar *xslt,
                 const gchar *out,
                 GError **error);

Types and Values

enum FoLibfoBasicError

Members

FO_LIBFO_BASIC_ERROR_FAILED

   

FO_LIBFO_BASIC_ERROR_UNKNOWN_FORMAT

   

FO_LIBFO_BASIC_ERROR_WARNING

   

FO_LIBFO_BASIC_ERROR_LAST

   

FoLibfoContext

typedef struct _FoLibfoContext FoLibfoContext;