00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __CR_OM_PARSER_H__
00029 #define __CR_OM_PARSER_H__
00030
00031 #include "cr-parser.h"
00032 #include "cr-stylesheet.h"
00033
00034
00035
00036
00037
00038
00039
00040
00041 G_BEGIN_DECLS
00042
00043 typedef struct _CROMParser CROMParser ;
00044 typedef struct _CROMParserPriv CROMParserPriv ;
00045
00046
00047
00048
00049
00050
00051
00052 struct _CROMParser
00053 {
00054 CROMParserPriv *priv ;
00055 } ;
00056
00057 CROMParser *
00058 cr_om_parser_new (CRInput *a_input) ;
00059
00060 enum CRStatus
00061 cr_om_parser_parse_file (CROMParser *a_this,
00062 const guchar *a_file_uri,
00063 enum CREncoding a_enc,
00064 CRStyleSheet **a_result) ;
00065
00066 enum CRStatus
00067 cr_om_parser_simply_parse_file (const guchar *a_file_path,
00068 enum CREncoding a_enc,
00069 CRStyleSheet **a_result) ;
00070
00071 enum CRStatus
00072 cr_om_parser_simply_parse_buf (const guchar *a_buf,
00073 gulong a_len,
00074 enum CREncoding a_enc,
00075 CRStyleSheet **a_result) ;
00076
00077 enum CRStatus
00078 cr_om_parser_parse_buf (CROMParser *a_this,
00079 const guchar *a_buf,
00080 gulong a_len,
00081 enum CREncoding a_enc,
00082 CRStyleSheet **a_result) ;
00083
00084 void
00085 cr_om_parser_destroy (CROMParser *a_this) ;
00086
00087 G_END_DECLS
00088
00089 #endif