|  |  |  | Libcroco Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
struct CRPropList; CRPropListPriv; CRPropList * cr_prop_list_append (CRPropList *a_this,CRPropList *a_to_append); CRPropList * cr_prop_list_append2 (CRPropList *a_this,CRString *a_prop,CRDeclaration *a_decl); CRPropList * cr_prop_list_prepend (CRPropList *a_this,CRPropList *a_to_append); CRPropList * cr_prop_list_prepend2 (CRPropList *a_this,CRString *a_prop,CRDeclaration *a_decl); enum CRStatus cr_prop_list_set_prop (CRPropList *a_this,CRString *a_prop); enum CRStatus cr_prop_list_get_prop (CRPropList const *a_this,CRString **a_prop); enum CRStatus cr_prop_list_lookup_prop (CRPropList *a_this,CRString *a_prop,CRPropList **a_pair); CRPropList * cr_prop_list_get_next (CRPropList *a_this); CRPropList * cr_prop_list_get_prev (CRPropList *a_this); enum CRStatus cr_prop_list_set_decl (CRPropList *a_this,CRDeclaration *a_decl); enum CRStatus cr_prop_list_get_decl (CRPropList const *a_this,CRDeclaration **a_decl); CRPropList * cr_prop_list_unlink (CRPropList *a_this,CRPropList *a_pair); void cr_prop_list_destroy (CRPropList *a_this);
CRPropList * cr_prop_list_append (CRPropList *a_this,CRPropList *a_to_append);
Appends a property list to the current one.
| 
 | the current instance of CRPropList | 
| 
 | the property list to append | 
| Returns : | the resulting prop list, or NULL if an error occured | 
CRPropList * cr_prop_list_append2 (CRPropList *a_this,CRString *a_prop,CRDeclaration *a_decl);
| 
 | the current instance of CRPropList | 
| 
 | the property to consider | 
| 
 | the declaration to consider | 
| Returns : | the resulting property list, or NULL in case of an error. | 
CRPropList * cr_prop_list_prepend (CRPropList *a_this,CRPropList *a_to_append);
Prepends a list to the current list
| 
 | the current instance of CRPropList | 
| Returns : | the new properties list. | 
CRPropList * cr_prop_list_prepend2 (CRPropList *a_this,CRString *a_prop,CRDeclaration *a_decl);
Prepends a propertie to a list of properties
| 
 | the current instance of CRPropList | 
| 
 | the property value to append. | 
| Returns : | the new property list. | 
enum CRStatus cr_prop_list_set_prop (CRPropList *a_this,CRString *a_prop);
Sets the property of a CRPropList
| 
 | the current instance of CRPropList | 
| 
 | the property to set | 
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
| 
 | the current instance of CRPropList | 
| 
 | out parameter. The returned property | 
| Returns : | CR_OK upon successful completion, an error code otherwise. | 
enum CRStatus cr_prop_list_lookup_prop (CRPropList *a_this,CRString *a_prop,CRPropList **a_pair);
Lookup a given property/declaration pair
| 
 | the current instance of CRPropList | 
| 
 | the property to lookup | 
| 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. | 
CRPropList *        cr_prop_list_get_next               (CRPropList *a_this);
Gets the next prop/decl pair in the list
| 
 | the current instance of CRPropList | 
| Returns : | the next prop/declaration pair of the list, or NULL if we reached end of list (or if an error occurs) | 
CRPropList *        cr_prop_list_get_prev               (CRPropList *a_this);
Gets the previous prop/decl pair in the list
| 
 | the current instance of CRPropList | 
| Returns : | the previous prop/declaration pair of the list, or NULL if we reached end of list (or if an error occurs) | 
enum CRStatus cr_prop_list_set_decl (CRPropList *a_this,CRDeclaration *a_decl);
| 
 | the current instance of CRPropList | 
| 
 | the new property value. | 
| Returns : | CR_OK upon successful completion, an error code otherwise. | 
enum CRStatus cr_prop_list_get_decl (CRPropList const *a_this,CRDeclaration **a_decl);
| 
 | the current instance of CRPropList | 
| 
 | out parameter. The property value | 
| Returns : | CR_OK upon successful completion. | 
CRPropList * cr_prop_list_unlink (CRPropList *a_this,CRPropList *a_pair);
Unlinks a prop/decl pair from the list
| 
 | the current list of prop/decl pairs | 
| 
 | the prop/decl pair to unlink. | 
| Returns : | the new list or NULL in case of an error. | 
void                cr_prop_list_destroy                (CRPropList *a_this);
| 
 | the current instance of CRPropList |