#include <string.h>
#include "cr-selector.h"
#include "cr-parser.h"
Go to the source code of this file.
Functions | |
CRSelector * | cr_selector_new (CRSimpleSel *a_simple_sel) |
Creates a new instance of CRSelector. | |
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) |
Appends a new instance of CRSelector to the current selector list. | |
CRSelector * | cr_selector_prepend (CRSelector *a_this, CRSelector *a_new) |
Prepends an element to the CRSelector list. | |
CRSelector * | cr_selector_append_simple_sel (CRSelector *a_this, CRSimpleSel *a_simple_sel) |
append a simple selector to the current CRSelector list. | |
guchar * | cr_selector_to_string (CRSelector *a_this) |
void | cr_selector_dump (CRSelector *a_this, FILE *a_fp) |
Serializes the current instance of CRSelector to a file. | |
void | cr_selector_ref (CRSelector *a_this) |
Increments the ref count of the current instance of CRSelector. | |
gboolean | cr_selector_unref (CRSelector *a_this) |
Decrements the ref count of the current instance of CRSelector. | |
void | cr_selector_destroy (CRSelector *a_this) |
Destroys the selector list. |
|
Appends a new instance of CRSelector to the current selector list.
Definition at line 76 of file cr-selector.c. References _CRSelector::next, and _CRSelector::prev. Referenced by cr_selector_append_simple_sel(). |
|
append a simple selector to the current CRSelector list.
Definition at line 120 of file cr-selector.c. References cr_selector_append(), and cr_selector_new(). |
|
Destroys the selector list.
Definition at line 249 of file cr-selector.c. References cr_simple_sel_destroy(), _CRSelector::next, _CRSelector::prev, and _CRSelector::simple_sel. Referenced by cr_selector_unref(). |
|
Serializes the current instance of CRSelector to a file.
Definition at line 187 of file cr-selector.c. References cr_selector_to_string(). |
|
Creates a new instance of CRSelector.
Definition at line 38 of file cr-selector.c. References cr_utils_trace_info, and _CRSelector::simple_sel. Referenced by cr_selector_append_simple_sel(). |
|
Definition at line 54 of file cr-selector.c. References cr_parser_new_from_buf(). |
|
Prepends an element to the CRSelector list.
Definition at line 101 of file cr-selector.c. References _CRSelector::next, and _CRSelector::prev. |
|
Increments the ref count of the current instance of CRSelector.
Definition at line 209 of file cr-selector.c. References _CRSelector::ref_count. Referenced by cr_parser_parse_ruleset(), cr_statement_new_ruleset(), and cr_statement_ruleset_set_sel_list(). |
|
Definition at line 132 of file cr-selector.c. References cr_simple_sel_to_string(), _CRSelector::next, _CRSelector::prev, and _CRSelector::simple_sel. Referenced by cr_selector_dump(). |
|
Decrements the ref count of the current instance of CRSelector. If the ref count reaches zero, the current instance of CRSelector is destroyed.
Definition at line 226 of file cr-selector.c. References cr_selector_destroy(), and _CRSelector::ref_count. Referenced by cr_parser_parse_ruleset(), and cr_statement_ruleset_set_sel_list(). |