Libcroco
|
Go to the source code of this file.
Functions | |
CRSelector * | cr_selector_new (CRSimpleSel *a_simple_sel) |
cr_selector_new: | |
CRSelector * | cr_selector_parse_from_buf (const guchar *a_char_buf, enum CREncoding a_enc) |
CRSelector * | cr_selector_append (CRSelector *a_this, CRSelector *a_new) |
cr_selector_append: | |
CRSelector * | cr_selector_prepend (CRSelector *a_this, CRSelector *a_new) |
cr_selector_prepend: | |
CRSelector * | cr_selector_append_simple_sel (CRSelector *a_this, CRSimpleSel *a_simple_sel) |
cr_selector_append_simple_sel: | |
guchar * | cr_selector_to_string (CRSelector const *a_this) |
void | cr_selector_dump (CRSelector const *a_this, FILE *a_fp) |
cr_selector_dump: | |
void | cr_selector_ref (CRSelector *a_this) |
cr_selector_ref: | |
gboolean | cr_selector_unref (CRSelector *a_this) |
cr_selector_unref: | |
void | cr_selector_destroy (CRSelector *a_this) |
cr_selector_destroy: |
CRSelector* cr_selector_append | ( | CRSelector * | a_this, |
CRSelector * | a_new | ||
) |
cr_selector_append:
: the current instance of CRSelector. : the instance of CRSelector to be appended.
Appends a new instance of CRSelector to the current selector list.
Returns the new list.
Definition at line 78 of file cr-selector.c.
Referenced by cr_selector_append_simple_sel().
CRSelector* cr_selector_append_simple_sel | ( | CRSelector * | a_this, |
CRSimpleSel * | a_simple_sel | ||
) |
cr_selector_append_simple_sel:
: the current instance of CRSelector. : the simple selector to append.
append a simple selector to the current CRSelector list.
Returns the new list or NULL in case of failure.
Definition at line 129 of file cr-selector.c.
References cr_selector_append(), and cr_selector_new().
void cr_selector_destroy | ( | CRSelector * | a_this | ) |
cr_selector_destroy:
: the current instance of CRSelector.
Destroys the selector list.
Definition at line 259 of file cr-selector.c.
References cr_simple_sel_destroy().
Referenced by cr_selector_unref().
void cr_selector_dump | ( | CRSelector const * | a_this, |
FILE * | a_fp | ||
) |
cr_selector_dump:
: the current instance of CRSelector. : the destination file.
Serializes the current instance of CRSelector to a file.
Definition at line 191 of file cr-selector.c.
References cr_selector_to_string().
CRSelector* cr_selector_new | ( | CRSimpleSel * | a_simple_sel | ) |
cr_selector_new:
: the initial simple selector list of the current instance of CRSelector.
Creates a new instance of CRSelector.
Returns the newly built instance of CRSelector, or NULL in case of failure.
Definition at line 39 of file cr-selector.c.
References cr_utils_trace_info.
Referenced by cr_selector_append_simple_sel().
CRSelector* cr_selector_parse_from_buf | ( | const guchar * | a_char_buf, |
enum CREncoding | a_enc | ||
) |
Definition at line 54 of file cr-selector.c.
References cr_parser_new_from_buf().
CRSelector* cr_selector_prepend | ( | CRSelector * | a_this, |
CRSelector * | a_new | ||
) |
cr_selector_prepend:
: the current instance of CRSelector list. : the instance of CRSelector.
Prepends an element to the CRSelector list.
Returns the new list.
Definition at line 106 of file cr-selector.c.
void cr_selector_ref | ( | CRSelector * | a_this | ) |
cr_selector_ref:
: the current instance of CRSelector.
Increments the ref count of the current instance of CRSelector.
Definition at line 214 of file cr-selector.c.
Referenced by cr_parser_parse_ruleset(), cr_statement_new_ruleset(), and cr_statement_ruleset_set_sel_list().
guchar* cr_selector_to_string | ( | CRSelector const * | a_this | ) |
Definition at line 141 of file cr-selector.c.
References cr_simple_sel_to_string().
Referenced by cr_selector_dump().
gboolean cr_selector_unref | ( | CRSelector * | a_this | ) |
cr_selector_unref:
: the current instance of CRSelector.
Decrements the ref count of the current instance of CRSelector. If the ref count reaches zero, the current instance of CRSelector is destroyed.
Returns TRUE if this function destroyed the current instance of CRSelector, FALSE otherwise.
Definition at line 235 of file cr-selector.c.
References cr_selector_destroy().
Referenced by cr_parser_parse_ruleset(), and cr_statement_ruleset_set_sel_list().