Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

cr-prop-list.c File Reference

#include <string.h>
#include "cr-prop-list.h"

Go to the source code of this file.

Data Structures

struct  _CRPropListPriv

Defines

#define PRIVATE(a_obj)   (a_obj)->priv

Functions

CRPropListcr_prop_list_append (CRPropList *a_this, CRPropList *a_to_append)
 Appends a property list to the current one.
CRPropListcr_prop_list_append2 (CRPropList *a_this, CRString *a_prop, CRDeclaration *a_decl)
 Appends a pair of prop/declaration to the current prop list.
CRPropListcr_prop_list_prepend (CRPropList *a_this, CRPropList *a_to_prepend)
 Prepends a list to the current list.
CRPropListcr_prop_list_prepend2 (CRPropList *a_this, CRString *a_prop, CRDeclaration *a_decl)
 Prepends a list to the current list.
enum CRStatus cr_prop_list_set_prop (CRPropList *a_this, CRString *a_prop)
 Sets the property of a CRPropList.
enum CRStatus cr_prop_list_get_prop (CRPropList *a_this, CRString **a_prop)
 Getter of the property associated to the current instance of CRPropList.
enum CRStatus cr_prop_list_set_decl (CRPropList *a_this, CRDeclaration *a_decl)
enum CRStatus cr_prop_list_get_decl (CRPropList *a_this, CRDeclaration **a_decl)
enum CRStatus cr_prop_list_lookup_prop (CRPropList *a_this, CRString *a_prop, CRPropList **a_pair)
 Lookup a given property/declaration pair.
CRPropListcr_prop_list_get_next (CRPropList *a_this)
 Gets the next prop/decl pair in the list.
CRPropListcr_prop_list_get_prev (CRPropList *a_this)
 Gets the previous prop/decl pair in the list.
CRPropListcr_prop_list_unlink (CRPropList *a_this, CRPropList *a_pair)
 Unlinks a prop/decl pair from the list.
void cr_prop_list_destroy (CRPropList *a_this)


Define Documentation

#define PRIVATE a_obj   )     (a_obj)->priv
 

Definition at line 25 of file cr-prop-list.c.


Function Documentation

CRPropList* cr_prop_list_append CRPropList a_this,
CRPropList a_to_append
 

Appends a property list to the current one.

Parameters:
a_this the current instance of CRPropList
a_to_append the property list to append
Returns:
the resulting prop list, or NULL if an error occured

Definition at line 74 of file cr-prop-list.c.

References CRPropList, and PRIVATE.

Referenced by cr_prop_list_append2().

CRPropList* cr_prop_list_append2 CRPropList a_this,
CRString a_prop,
CRDeclaration a_decl
 

Appends a pair of prop/declaration to the current prop list.

Parameters:
a_this the current instance of CRPropList
a_prop the property to consider
a_decl the declaration to consider
Returns:
the resulting property list, or NULL in case of an error.

Definition at line 103 of file cr-prop-list.c.

References cr_prop_list_append(), CRDeclaration, CRPropList, CRString, and PRIVATE.

void cr_prop_list_destroy CRPropList a_this  ) 
 

Definition at line 336 of file cr-prop-list.c.

References cr_prop_list_get_next(), CRPropList, and PRIVATE.

Referenced by cr_sel_eng_get_matched_style().

enum CRStatus cr_prop_list_get_decl CRPropList a_this,
CRDeclaration **  a_decl
 

Definition at line 212 of file cr-prop-list.c.

References CR_BAD_PARAM_ERROR, CRDeclaration, and PRIVATE.

CRPropList* cr_prop_list_get_next CRPropList a_this  ) 
 

Gets the next prop/decl pair in the list.

Parameters:
a_this the current instance of CRPropList
the next prop/decl pair, or NULL if we reached the end of the list.
Returns:
the next prop/declaration pair of the list, or NULL if we reached end of list (or if an error occurs)

Definition at line 272 of file cr-prop-list.c.

References PRIVATE.

Referenced by cr_prop_list_destroy().

CRPropList* cr_prop_list_get_prev CRPropList a_this  ) 
 

Gets the previous prop/decl pair in the list.

Parameters:
a_this the current instance of CRPropList
the previous prop/decl pair, or NULL if we reached the end of the list.
Returns:
the previous prop/declaration pair of the list, or NULL if we reached end of list (or if an error occurs)

Definition at line 288 of file cr-prop-list.c.

References PRIVATE.

enum CRStatus cr_prop_list_get_prop CRPropList a_this,
CRString **  a_prop
 

Getter of the property associated to the current instance of CRPropList.

Parameters:
a_this the current instance of CRPropList
a_prop out parameter. The returned property
Returns:
CR_OK upon successful completion, an error code otherwise.

Definition at line 192 of file cr-prop-list.c.

References CR_BAD_PARAM_ERROR, CRString, and PRIVATE.

enum CRStatus cr_prop_list_lookup_prop CRPropList a_this,
CRString a_prop,
CRPropList **  a_pair
 

Lookup a given property/declaration pair.

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)
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.

Definition at line 232 of file cr-prop-list.c.

References CR_BAD_PARAM_ERROR, CRPropList, CRString, PRIVATE, and _CRString::stryng.

CRPropList* cr_prop_list_prepend CRPropList a_this,
CRPropList a_to_prepend
 

Prepends a list to the current list.

Parameters:
a_this the current instance of CRPropList
the new list to prepend.

Definition at line 128 of file cr-prop-list.c.

References CRPropList, and PRIVATE.

Referenced by cr_prop_list_prepend2().

CRPropList* cr_prop_list_prepend2 CRPropList a_this,
CRString a_prop,
CRDeclaration a_decl
 

Prepends a list to the current list.

Parameters:
a_this the current instance of CRPropList
the new list to prepend.

Definition at line 151 of file cr-prop-list.c.

References cr_prop_list_prepend(), CRDeclaration, CRPropList, CRString, and PRIVATE.

enum CRStatus cr_prop_list_set_decl CRPropList a_this,
CRDeclaration a_decl
 

Definition at line 202 of file cr-prop-list.c.

References CR_BAD_PARAM_ERROR, CRDeclaration, and PRIVATE.

enum CRStatus cr_prop_list_set_prop CRPropList a_this,
CRString a_prop
 

Sets the property of a CRPropList.

Parameters:
a_this the current instance of CRPropList
a_prop the property to set

Definition at line 174 of file cr-prop-list.c.

References CR_BAD_PARAM_ERROR, CRString, and PRIVATE.

CRPropList* cr_prop_list_unlink CRPropList a_this,
CRPropList a_pair
 

Unlinks a prop/decl pair from the list.

Parameters:
a_this the current list of prop/decl pairs
a_pair the prop/decl pair to unlink.
Returns:
the new list or NULL in case of an error.

Definition at line 302 of file cr-prop-list.c.

References CRPropList, and PRIVATE.


Generated on Fri Oct 29 08:29:13 2004 for Libcroco by  doxygen 1.3.9.1