PageRenderTime 44ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/cssed-0.4.0/libcroco/parser/cr-attr-sel.h

#
C++ Header | 74 lines | 37 code | 16 blank | 21 comment | 0 complexity | 2bccbd190e89c946023d77bb65ff5b88 MD5 | raw file
Possible License(s): GPL-2.0
  1. /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
  2. /*
  3. * This file is part of The Croco Library
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of version 2.1 of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  17. * USA
  18. *
  19. * Author: Dodji Seketeli
  20. * See COPYRIGHTS file for copyright information.
  21. */
  22. #ifndef __CR_ATTR_SEL_H__
  23. #define __CR_ATTR_SEL_H__
  24. #include <stdio.h>
  25. #include <glib.h>
  26. #include "cr-utils.h"
  27. #include "cr-parsing-location.h"
  28. #include "cr-string.h"
  29. G_BEGIN_DECLS
  30. struct _CRAttrSel ;
  31. typedef struct _CRAttrSel CRAttrSel ;
  32. enum AttrMatchWay
  33. {
  34. NO_MATCH = 0,
  35. SET,
  36. EQUALS,
  37. INCLUDES,
  38. DASHMATCH
  39. } ;
  40. struct _CRAttrSel
  41. {
  42. CRString *name ;
  43. CRString *value ;
  44. enum AttrMatchWay match_way ;
  45. CRAttrSel *next ;
  46. CRAttrSel *prev ;
  47. CRParsingLocation location ;
  48. } ;
  49. CRAttrSel * cr_attr_sel_new (void) ;
  50. enum CRStatus cr_attr_sel_append_attr_sel (CRAttrSel * a_this,
  51. CRAttrSel *a_new) ;
  52. enum CRStatus cr_attr_sel_prepend_attr_sel (CRAttrSel *a_this,
  53. CRAttrSel *a_attr_sel) ;
  54. guchar * cr_attr_sel_to_string (CRAttrSel *a_this) ;
  55. void cr_attr_sel_dump (CRAttrSel *a_this, FILE *a_fp) ;
  56. void cr_attr_sel_destroy (CRAttrSel *a_this) ;
  57. G_END_DECLS
  58. #endif /*__CR_ATTR_SEL_H__*/