Libcroco
cr-attr-sel.h
Go to the documentation of this file.
1 /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
2 
3 /*
4  * This file is part of The Croco Library
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2.1 of the GNU Lesser General Public
8  * License as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA
19  *
20  * Author: Dodji Seketeli
21  * See COPYRIGHTS file for copyright information.
22  */
23 
24 #ifndef __CR_ATTR_SEL_H__
25 #define __CR_ATTR_SEL_H__
26 
27 #include <stdio.h>
28 #include <glib.h>
29 #include "cr-utils.h"
30 #include "cr-parsing-location.h"
31 #include "cr-string.h"
32 
33 G_BEGIN_DECLS
34 
35 
36 struct _CRAttrSel ;
37 typedef struct _CRAttrSel CRAttrSel ;
38 
40 {
41  NO_MATCH = 0,
42  SET,
46 } ;
47 
48 struct _CRAttrSel
49 {
56 } ;
57 
58 CRAttrSel * cr_attr_sel_new (void) ;
59 
61  CRAttrSel *a_attr_sel) ;
62 
64  CRAttrSel *a_attr_sel) ;
65 
66 guchar * cr_attr_sel_to_string (CRAttrSel const *a_this) ;
67 
68 void cr_attr_sel_dump (CRAttrSel const *a_this, FILE *a_fp) ;
69 
70 void cr_attr_sel_destroy (CRAttrSel *a_this) ;
71 
72 G_END_DECLS
73 
74 #endif /*__CR_ATTR_SEL_H__*/
enum AttrMatchWay match_way
Definition: cr-attr-sel.h:52
enum CRStatus cr_attr_sel_prepend_attr_sel(CRAttrSel *a_this, CRAttrSel *a_attr_sel)
cr_attr_sel_prepend_attr_sel: @a_this: the "this pointer" of the current instance *of CRAttrSel.
Definition: cr-attr-sel.c:88
The Croco library basic types definitions And global definitions.
The declaration of the CRParsingLocation object.
guchar * cr_attr_sel_to_string(CRAttrSel const *a_this)
cr_attr_sel_to_string: @a_this: the current instance of CRAttrSel.
Definition: cr-attr-sel.c:108
CRAttrSel * prev
Definition: cr-attr-sel.h:54
CRParsingLocation location
Definition: cr-attr-sel.h:55
CRStatus
The status type returned by the methods of the croco library.
Definition: cr-utils.h:43
enum CRStatus cr_attr_sel_append_attr_sel(CRAttrSel *a_this, CRAttrSel *a_attr_sel)
cr_attr_sel_append_attr_sel: @a_this: the this pointer of the current instance of CRAttrSel.
Definition: cr-attr-sel.c:61
CRString * value
Definition: cr-attr-sel.h:51
Declaration file of the CRString class.
void cr_attr_sel_dump(CRAttrSel const *a_this, FILE *a_fp)
cr_attr_sel_dump: @a_this: the "this pointer" of the current instance of CRAttrSel.
Definition: cr-attr-sel.c:187
CRAttrSel * next
Definition: cr-attr-sel.h:53
typedefG_BEGIN_DECLS struct _CRString CRString
Definition: cr-string.h:37
CRAttrSel * cr_attr_sel_new(void)
CRAttrSel:
Definition: cr-attr-sel.c:42
AttrMatchWay
Definition: cr-attr-sel.h:39
void cr_attr_sel_destroy(CRAttrSel *a_this)
cr_attr_sel_destroy: @a_this: the "this pointer" of the current instance of CRAttrSel.
Definition: cr-attr-sel.c:211
CRString * name
Definition: cr-attr-sel.h:50