1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/src/document/css/parser.h
Petr Baudis 0f6d4310ad Initial commit of the HEAD branch of the ELinks CVS repository, as of
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00

29 lines
1.0 KiB
C

/* $Id: parser.h,v 1.15 2004/09/21 17:34:02 jonas Exp $ */
#ifndef EL__DOCUMENT_CSS_PARSER_H
#define EL__DOCUMENT_CSS_PARSER_H
#include "util/lists.h"
struct scanner;
struct css_stylesheet;
struct uri;
/* This is interface for the value parser. It is intended to be used only
* internally inside of the CSS engine. */
/* This function takes a semicolon separated list of declarations from the
* given string, parses them to atoms, and chains the newly created {struct
* css_property}es to the specified list. The function returns positive value
* in case it recognized a property in the given string, or zero in case of an
* error. */
void css_parse_properties(struct list_head *props, struct scanner *scanner);
/* Parses the @string and adds any recognized selectors + properties to the
* given stylesheet @css. If the selector is already in the stylesheet it
* properties are added to the that selector. */
void css_parse_stylesheet(struct css_stylesheet *css, struct uri *base_uri,
unsigned char *string, unsigned char *end);
#endif