Libcroco
cr-prop-list.h
Go to the documentation of this file.
1 /*
2  * This file is part of The Croco Library
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of version 2.1 of the GNU Lesser General Public
6  * License as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16  * USA
17  *
18  * Author: Dodji Seketeli
19  * See COPYRIGHTS file for copyrights information.
20  */
21 
22 #ifndef __CR_PROP_LIST_H__
23 #define __CR_PROP_LIST_H__
24 
25 #include "cr-utils.h"
26 #include "cr-declaration.h"
27 #include "cr-string.h"
28 
29 G_BEGIN_DECLS
30 
31 typedef struct _CRPropList CRPropList ;
33 
34 struct _CRPropList
35 {
37 } ;
38 
40  CRPropList *a_to_append) ;
41 
43  CRString *a_prop,
44  CRDeclaration *a_decl) ;
45 
47  CRPropList *a_to_append) ;
48 
50  CRString *a_prop,
51  CRDeclaration *a_decl) ;
52 
54  CRString *a_prop) ;
55 
56 enum CRStatus cr_prop_list_get_prop (CRPropList const *a_this,
57  CRString **a_prop) ;
58 
60  CRString *a_prop,
61  CRPropList**a_pair) ;
62 
64 
66 
68  CRDeclaration *a_decl);
69 
70 enum CRStatus cr_prop_list_get_decl (CRPropList const *a_this,
71  CRDeclaration **a_decl) ;
72 
74  CRPropList *a_pair) ;
75 
76 void cr_prop_list_destroy (CRPropList *a_this) ;
77 
78 G_END_DECLS
79 
80 #endif /*__CR_PROP_LIST_H__*/
enum CRStatus cr_prop_list_set_decl(CRPropList *a_this, CRDeclaration *a_decl)
cr_prop_list_set_decl: @a_this: the current instance of CRPropList @a_decl: the new property value.
Definition: cr-prop-list.c:227
CRPropList * cr_prop_list_append2(CRPropList *a_this, CRString *a_prop, CRDeclaration *a_decl)
cr_prop_list_append2: Appends a pair of prop/declaration to the current prop list.
Definition: cr-prop-list.c:108
void cr_prop_list_destroy(CRPropList *a_this)
cr_prop_list_destroy: @a_this: the current instance of CRPropList
Definition: cr-prop-list.c:380
enum CRStatus cr_prop_list_lookup_prop(CRPropList *a_this, CRString *a_prop, CRPropList **a_pair)
cr_prop_list_lookup_prop: @a_this: the current instance of CRPropList @a_prop: the property to lookup...
Definition: cr-prop-list.c:267
The Croco library basic types definitions And global definitions.
enum CRStatus cr_prop_list_get_prop(CRPropList const *a_this, CRString **a_prop)
cr_prop_list_get_prop: @a_this: the current instance of CRPropList @a_prop: out parameter.
Definition: cr-prop-list.c:210
CRStatus
The status type returned by the methods of the croco library.
Definition: cr-utils.h:43
typedefG_BEGIN_DECLS struct _CRPropList CRPropList
Definition: cr-prop-list.h:31
CRPropList * cr_prop_list_get_prev(CRPropList *a_this)
cr_prop_list_get_prev: @a_this: the current instance of CRPropList
Definition: cr-prop-list.c:325
Declaration file of the CRString class.
enum CRStatus cr_prop_list_set_prop(CRPropList *a_this, CRString *a_prop)
cr_prop_list_set_prop: @a_this: the current instance of CRPropList @a_prop: the property to set
Definition: cr-prop-list.c:189
The declaration of the CRDeclaration class.
typedefG_BEGIN_DECLS struct _CRString CRString
Definition: cr-string.h:37
CRPropList * cr_prop_list_unlink(CRPropList *a_this, CRPropList *a_pair)
cr_prop_list_unlink: @a_this: the current list of prop/decl pairs @a_pair: the prop/decl pair to unli...
Definition: cr-prop-list.c:342
enum CRStatus cr_prop_list_get_decl(CRPropList const *a_this, CRDeclaration **a_decl)
cr_prop_list_get_decl: @a_this: the current instance of CRPropList @a_decl: out parameter.
Definition: cr-prop-list.c:244
CRPropList * cr_prop_list_prepend(CRPropList *a_this, CRPropList *a_to_append)
cr_prop_list_prepend: @a_this: the current instance of CRPropList @a_to_prepend: the new list to prep...
Definition: cr-prop-list.c:136
CRPropList * cr_prop_list_get_next(CRPropList *a_this)
cr_prop_list_get_next: @a_this: the current instance of CRPropList
Definition: cr-prop-list.c:308
CRPropList * cr_prop_list_append(CRPropList *a_this, CRPropList *a_to_append)
cr_prop_list_append: @a_this: the current instance of CRPropList @a_to_append: the property list to a...
Definition: cr-prop-list.c:77
CRPropList * cr_prop_list_prepend2(CRPropList *a_this, CRString *a_prop, CRDeclaration *a_decl)
cr_prop_list_prepend2: @a_this: the current instance of CRPropList @a_prop_name: property name to app...
Definition: cr-prop-list.c:164
CRPropListPriv * priv
Definition: cr-prop-list.h:36