Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_parser_set_sac_handler ( CRParser a_this,
CRDocHandler *  a_handler 
)

Sets a SAC document handler to the parser.

Parameters:
a_this the "this pointer" of the current instance of CRParser.
a_handler the handler to set.
Returns:
CR_OK upon successfull completion, an error code otherwise.

Definition at line 2825 of file cr-parser.c.

References cr_doc_handler_ref(), and cr_doc_handler_unref().

Referenced by cr_parser_set_default_sac_handler(), cr_statement_at_media_rule_parse_from_buf(), cr_statement_at_page_rule_parse_from_buf(), cr_statement_font_face_rule_parse_from_buf(), and cr_statement_ruleset_parse_from_buf().

{
        g_return_val_if_fail (a_this, CR_BAD_PARAM_ERROR);

        if (PRIVATE (a_this)->sac_handler) {
                cr_doc_handler_unref (PRIVATE (a_this)->sac_handler);
        }

        PRIVATE (a_this)->sac_handler = a_handler;
        cr_doc_handler_ref (a_handler);

        return CR_OK;
}


Generated by  Doxygen 1.6.0   Back to index