36 #define PRIVATE(obj) (obj)->priv 76 g_return_val_if_fail (result, NULL);
108 *a_ctxt = a_this->priv->context;
126 a_this->priv->context = a_ctxt;
145 *a_result = a_this->priv->result;
164 a_this->priv->result = a_result;
185 a_this->start_document = NULL;
186 a_this->end_document = NULL;
187 a_this->import_style = NULL;
188 a_this->namespace_declaration = NULL;
189 a_this->comment = NULL;
190 a_this->start_selector = NULL;
191 a_this->end_selector = NULL;
192 a_this->property = NULL;
193 a_this->start_font_face = NULL;
194 a_this->end_font_face = NULL;
195 a_this->start_media = NULL;
196 a_this->end_media = NULL;
197 a_this->start_page = NULL;
198 a_this->end_page = NULL;
199 a_this->ignorable_at_rule = NULL;
200 a_this->error = NULL;
201 a_this->unrecoverable_error = NULL;
212 g_return_if_fail (a_this);
229 g_return_val_if_fail (a_this, FALSE);
231 if (a_this->ref_count > 0) {
235 if (a_this->ref_count == 0) {
252 g_return_if_fail (a_this);
255 g_free (a_this->priv);
272 g_return_if_fail (a_this &&
PRIVATE (a_this)
275 PRIVATE (a_this)->parser = a_parser ;
void cr_doc_handler_destroy(CRDocHandler *a_this)
cr_doc_handler_destroy: @a_this: the instance of CRDocHandler to destroy.
The implementation of the SAC parser.
enum CRStatus cr_doc_handler_set_ctxt(CRDocHandler *a_this, gpointer a_ctxt)
cr_doc_handler_set_ctxt: @a_this: the current instance of CRDocHandler @a_ctxt: a pointer to the pars...
enum CRStatus cr_doc_handler_get_ctxt(CRDocHandler const *a_this, gpointer *a_ctxt)
cr_doc_handler_get_ctxt: @a_this: the current instance of CRDocHandler.
enum CRStatus cr_doc_handler_set_result(CRDocHandler *a_this, gpointer a_result)
cr_doc_handler_set_result: @a_this: the current instance of CRDocHandler @a_result: the new result.
CRStatus
The status type returned by the methods of the croco library.
typedefG_BEGIN_DECLS struct _CRDocHandler CRDocHandler
enum CRStatus cr_doc_handler_get_result(CRDocHandler const *a_this, gpointer *a_result)
cr_doc_handler_get_result: @a_this: the current instance of CRDocHandler @a_result: out parameter.
CRParser * parser
a pointer to the parser used to parse the current document.
gboolean cr_doc_handler_unref(CRDocHandler *a_this)
cr_doc_handler_unref: @a_this: the currrent instance of CRDocHandler.
The declaration of the #CRDocumentHandler class.
#define PRIVATE(obj)
@CRDocHandler:
void cr_doc_handler_associate_a_parser(CRDocHandler *a_this, gpointer a_parser)
cr_doc_handler_associate_a_parser: Associates a parser to the current document handler
void cr_doc_handler_ref(CRDocHandler *a_this)
cr_doc_handler_ref: @a_this: the current instance of CRDocHandler.
The declaration file of the CRParser class.
gpointer result
The place where CROMParser puts the result of its parsing, if any.
gpointer context
This pointer is to hold an application parsing context.
enum CRStatus cr_doc_handler_set_default_sac_handler(CRDocHandler *a_this)
cr_doc_handler_set_default_sac_handler: @a_this: a pointer to the current instance of CRDocHandler.
CRDocHandler * cr_doc_handler_new(void)
cr_doc_handler_new: Constructor of CRDocHandler.
#define cr_utils_trace_info(a_msg)
Traces an info message.