![]() |
![]() |
![]() |
xmlroff Reference Manual | ![]() |
---|---|---|---|---|
enum FoLibfoBasicError; #define FO_LIBFO_BASIC_ERROR GQuark fo_libfo_basic_error_quark (void); FoLibfoContext; gboolean fo_libfo_init (void); gpointer (*FoMalloc) (gsize n_bytes); gpointer (*FoRealloc) (gpointer mem, gsize n_bytes); void (*FoFree) (gpointer mem); gboolean fo_libfo_init2 (FoMalloc fo_malloc, FoRealloc fo_realloc, FoFree fo_free); gboolean fo_libfo_shutdown (void); FoLibfoContext* fo_libfo_context_new (void); gboolean fo_libfo_format (const gchar *xml, const gchar *xslt, const gchar *out, GError **error);
typedef enum { FO_LIBFO_BASIC_ERROR_FAILED, /* Generic error code */ FO_LIBFO_BASIC_ERROR_UNKNOWN_FORMAT, FO_LIBFO_BASIC_ERROR_WARNING, /* Non-fatal error */ FO_LIBFO_BASIC_ERROR_LAST } FoLibfoBasicError;
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. |
gboolean fo_libfo_init (void);
Initialise the libfo formatter.
Returns : |
TRUE if successful.
|
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.
|
Function that allocates memory. |
|
Function that reallocates memory. |
|
Function that frees memory. |
Returns : |
TRUE if successful.
|
gboolean fo_libfo_shutdown (void);
Shutdown the libfo formatter.
Returns : |
TRUE if successful.
|
FoLibfoContext* fo_libfo_context_new (void);
Creates a new FoLibfoContext initialized to default value.
Returns : |
The new FoLibfoContext. |