Top |
Functions
CRPropList * | cr_prop_list_append () |
CRPropList * | cr_prop_list_append2 () |
CRPropList * | cr_prop_list_prepend () |
CRPropList * | cr_prop_list_prepend2 () |
enum CRStatus | cr_prop_list_set_prop () |
enum CRStatus | cr_prop_list_get_prop () |
enum CRStatus | cr_prop_list_lookup_prop () |
CRPropList * | cr_prop_list_get_next () |
CRPropList * | cr_prop_list_get_prev () |
enum CRStatus | cr_prop_list_set_decl () |
enum CRStatus | cr_prop_list_get_decl () |
CRPropList * | cr_prop_list_unlink () |
void | cr_prop_list_destroy () |
Functions
cr_prop_list_append ()
CRPropList * cr_prop_list_append (CRPropList *a_this
,CRPropList *a_to_append
);
Appends a property list to the current one.
Returns the resulting prop list, or NULL if an error occured
cr_prop_list_append2 ()
CRPropList * cr_prop_list_append2 (CRPropList *a_this
,CRString *a_prop
,CRDeclaration *a_decl
);
Returns the resulting property list, or NULL in case of an error.
Parameters
a_this |
the current instance of CRPropList |
|
a_prop |
the property to consider |
|
a_decl |
the declaration to consider |
cr_prop_list_prepend ()
CRPropList * cr_prop_list_prepend (CRPropList *a_this
,CRPropList *a_to_append
);
Prepends a list to the current list Returns the new properties list.
cr_prop_list_prepend2 ()
CRPropList * cr_prop_list_prepend2 (CRPropList *a_this
,CRString *a_prop
,CRDeclaration *a_decl
);
Prepends a propertie to a list of properties
Returns the new property list.
Parameters
a_this |
the current instance of CRPropList |
|
a_prop_name |
property name to append |
|
a_decl |
the property value to append. |
cr_prop_list_set_prop ()
enum CRStatus cr_prop_list_set_prop (CRPropList *a_this
,CRString *a_prop
);
Sets the property of a CRPropList
cr_prop_list_get_prop ()
enum CRStatus cr_prop_list_get_prop (CRPropList const *a_this
,CRString **a_prop
);
Getter of the property associated to the current instance of CRPropList
Returns CR_OK upon successful completion, an error code otherwise.
cr_prop_list_lookup_prop ()
enum CRStatus cr_prop_list_lookup_prop (CRPropList *a_this
,CRString *a_prop
,CRPropList **a_pair
);
Lookup a given property/declaration pair
Returns CR_OK if a prop/decl pair has been found, CR_VALUE_NOT_FOUND_ERROR if not, or an error code if something bad happens.
Parameters
a_this |
the current instance of CRPropList |
|
a_prop |
the property to lookup |
|
a_prop_list |
out parameter. The property/declaration pair found (if and only if the function returned code if CR_OK) |
cr_prop_list_get_next ()
CRPropList *
cr_prop_list_get_next (CRPropList *a_this
);
Gets the next prop/decl pair in the list
Returns the next prop/declaration pair of the list, or NULL if we reached end of list (or if an error occurs)
cr_prop_list_get_prev ()
CRPropList *
cr_prop_list_get_prev (CRPropList *a_this
);
Gets the previous prop/decl pair in the list
Returns the previous prop/declaration pair of the list, or NULL if we reached end of list (or if an error occurs)
cr_prop_list_set_decl ()
enum CRStatus cr_prop_list_set_decl (CRPropList *a_this
,CRDeclaration *a_decl
);
Returns CR_OK upon successful completion, an error code otherwise.
cr_prop_list_get_decl ()
enum CRStatus cr_prop_list_get_decl (CRPropList const *a_this
,CRDeclaration **a_decl
);
Returns CR_OK upon successful completion.
cr_prop_list_unlink ()
CRPropList * cr_prop_list_unlink (CRPropList *a_this
,CRPropList *a_pair
);
Unlinks a prop/decl pair from the list
Returns the new list or NULL in case of an error.