(root)/
gettext-0.22.4/
libtextstyle/
lib/
libcroco/
cr-attr-sel.h
       1  /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
       2  
       3  /* libcroco - Library for parsing and applying CSS
       4   * Copyright (C) 2006-2019 Free Software Foundation, Inc.
       5   *
       6   * This file is not part of the GNU gettext program, but is used with
       7   * GNU gettext.
       8   *
       9   * The original copyright notice is as follows:
      10   */
      11  
      12  /*
      13   * This file is part of The Croco Library
      14   *
      15   * Copyright (C) 2003-2004 Dodji Seketeli.  All Rights Reserved.
      16   *
      17   * This program is free software; you can redistribute it and/or
      18   * modify it under the terms of version 2.1 of the GNU Lesser General Public
      19   * License as published by the Free Software Foundation.
      20   *
      21   * This program is distributed in the hope that it will be useful,
      22   * but WITHOUT ANY WARRANTY; without even the implied warranty of
      23   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      24   * GNU General Public License for more details.
      25   *
      26   * You should have received a copy of the GNU Lesser General Public License
      27   * along with this program; if not, write to the Free Software
      28   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
      29   * USA
      30   *
      31   * Author: Dodji Seketeli
      32   */
      33  
      34  #ifndef __CR_ATTR_SEL_H__
      35  #define __CR_ATTR_SEL_H__
      36  
      37  #include <stdio.h>
      38  #include <glib.h>
      39  #include "cr-utils.h"
      40  #include "cr-parsing-location.h"
      41  #include "cr-string.h"
      42  
      43  G_BEGIN_DECLS
      44  
      45  
      46  struct _CRAttrSel ;
      47  typedef struct _CRAttrSel CRAttrSel ;
      48  
      49  enum AttrMatchWay
      50  {
      51          NO_MATCH = 0,
      52          SET,
      53          EQUALS,
      54          INCLUDES,
      55          DASHMATCH
      56  } ;
      57  
      58  struct _CRAttrSel
      59  {
      60          CRString             *name ;
      61          CRString             *value ;
      62          enum AttrMatchWay  match_way ;
      63          CRAttrSel          *next ;
      64          CRAttrSel          *prev ;
      65          CRParsingLocation location ;
      66  } ;
      67  
      68  CRAttrSel * cr_attr_sel_new (void) ;
      69  
      70  enum CRStatus cr_attr_sel_append_attr_sel (CRAttrSel * a_this, 
      71                                             CRAttrSel *a_attr_sel) ;
      72  
      73  enum CRStatus cr_attr_sel_prepend_attr_sel (CRAttrSel *a_this, 
      74                                              CRAttrSel *a_attr_sel) ;
      75          
      76  guchar * cr_attr_sel_to_string (CRAttrSel const *a_this) ;
      77  
      78  void cr_attr_sel_dump (CRAttrSel const *a_this, FILE *a_fp) ;
      79  
      80  void cr_attr_sel_destroy (CRAttrSel *a_this) ;
      81  
      82  G_END_DECLS
      83  
      84  #endif /*__CR_ATTR_SEL_H__*/