Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gnulib-local / lib / libcroco / cr-pseudo.h
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  * See COPYRIGHTS file for copyright information
21  */
22
23 #ifndef __CR_PSEUDO_H__
24 #define __CR_PSEUDO_H__
25
26 #include <stdio.h>
27 #include <glib.h>
28 #include "cr-attr-sel.h"
29 #include "cr-parsing-location.h"
30
31 G_BEGIN_DECLS
32
33 enum CRPseudoType
34 {
35         IDENT_PSEUDO = 0,
36         FUNCTION_PSEUDO
37 } ;
38
39 typedef struct _CRPseudo CRPseudo ;
40
41 /**
42  *The CRPseudo Class.
43  *Abstract a "pseudo" as defined by the css2 spec
44  *in appendix D.1 .
45  */
46 struct _CRPseudo
47 {
48         enum CRPseudoType type ;
49         CRString *name ;
50         CRString *extra ;
51         CRParsingLocation location ;
52 } ;
53
54 CRPseudo * cr_pseudo_new (void) ;
55
56 guchar * cr_pseudo_to_string (CRPseudo *a_this) ;
57
58 void cr_pseudo_dump (CRPseudo *a_this, FILE *a_fp) ;
59
60 void cr_pseudo_destroy (CRPseudo *a_this) ;
61
62 G_END_DECLS
63
64 #endif /*__CR_PSEUDO_H__*/