|
Packit Bot |
06c835 |
/* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
/*
|
|
Packit Bot |
06c835 |
* This file is part of The Croco Library
|
|
Packit Bot |
06c835 |
*
|
|
Packit Bot |
06c835 |
* This program is free software; you can redistribute it and/or
|
|
Packit Bot |
06c835 |
* modify it under the terms of version 2.1 of the GNU Lesser General Public
|
|
Packit Bot |
06c835 |
* License as published by the Free Software Foundation.
|
|
Packit Bot |
06c835 |
*
|
|
Packit Bot |
06c835 |
* This program is distributed in the hope that it will be useful,
|
|
Packit Bot |
06c835 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Bot |
06c835 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Bot |
06c835 |
* GNU General Public License for more details.
|
|
Packit Bot |
06c835 |
*
|
|
Packit Bot |
06c835 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit Bot |
06c835 |
* along with this program; if not, write to the Free Software
|
|
Packit Bot |
06c835 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
Packit Bot |
06c835 |
* USA
|
|
Packit Bot |
06c835 |
*
|
|
Packit Bot |
06c835 |
* See COPYRIGHTS file for copyright information
|
|
Packit Bot |
06c835 |
*/
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#ifndef __CR_PSEUDO_H__
|
|
Packit Bot |
06c835 |
#define __CR_PSEUDO_H__
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#include <stdio.h>
|
|
Packit Bot |
06c835 |
#include <glib.h>
|
|
Packit Bot |
06c835 |
#include "cr-attr-sel.h"
|
|
Packit Bot |
06c835 |
#include "cr-parsing-location.h"
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
G_BEGIN_DECLS
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
enum CRPseudoType
|
|
Packit Bot |
06c835 |
{
|
|
Packit Bot |
06c835 |
IDENT_PSEUDO = 0,
|
|
Packit Bot |
06c835 |
FUNCTION_PSEUDO
|
|
Packit Bot |
06c835 |
} ;
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
typedef struct _CRPseudo CRPseudo ;
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
/**
|
|
Packit Bot |
06c835 |
*The CRPseudo Class.
|
|
Packit Bot |
06c835 |
*Abstract a "pseudo" as defined by the css2 spec
|
|
Packit Bot |
06c835 |
*in appendix D.1 .
|
|
Packit Bot |
06c835 |
*/
|
|
Packit Bot |
06c835 |
struct _CRPseudo
|
|
Packit Bot |
06c835 |
{
|
|
Packit Bot |
06c835 |
enum CRPseudoType type ;
|
|
Packit Bot |
06c835 |
CRString *name ;
|
|
Packit Bot |
06c835 |
CRString *extra ;
|
|
Packit Bot |
06c835 |
CRParsingLocation location ;
|
|
Packit Bot |
06c835 |
} ;
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
CRPseudo * cr_pseudo_new (void) ;
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
guchar * cr_pseudo_to_string (CRPseudo *a_this) ;
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
void cr_pseudo_dump (CRPseudo *a_this, FILE *a_fp) ;
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
void cr_pseudo_destroy (CRPseudo *a_this) ;
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
G_END_DECLS
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#endif /*__CR_PSEUDO_H__*/
|