2007-01-03 [wwp] 2.6.1cvs102
[claws.git] / src / html.h
index 72a55748ce239a77704bdb6f5ec106a41fed99cc..7f843f99b409d79ac2108de2af222f8d72c7ef67 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #ifndef __HTML_H__
 
 typedef enum
 {
-       HTML_NORMAL,
-       HTML_PAR,
-       HTML_BR,
-       HTML_HR,
-       HTML_HREF,
-       HTML_IMG,
-       HTML_FONT,
-       HTML_PRE,
-       HTML_UNKNOWN,
-       HTML_CONV_FAILED,
-       HTML_ERR,
-       HTML_EOF,
-       HTML_HREF_BEG
-} HTMLState;
-
-typedef struct _HTMLParser     HTMLParser;
-typedef struct _HTMLAttr       HTMLAttr;
-typedef struct _HTMLTag                HTMLTag;
-
-struct _HTMLParser
+       SC_HTML_NORMAL,
+       SC_HTML_PAR,
+       SC_HTML_BR,
+       SC_HTML_HR,
+       SC_HTML_HREF,
+       SC_HTML_IMG,
+       SC_HTML_FONT,
+       SC_HTML_PRE,
+       SC_HTML_UNKNOWN,
+       SC_HTML_CONV_FAILED,
+       SC_HTML_ERR,
+       SC_HTML_EOF,
+       SC_HTML_HREF_BEG
+} SC_HTMLState;
+
+typedef struct _SC_HTMLParser  SC_HTMLParser;
+typedef struct _SC_HTMLAttr            SC_HTMLAttr;
+typedef struct _SC_HTMLTag             SC_HTMLTag;
+
+struct _SC_HTMLParser
 {
        FILE *fp;
        CodeConverter *conv;
 
        GHashTable *symbol_table;
+       GHashTable *alt_symbol_table;
 
        GString *str;
        GString *buf;
 
        gchar *bufp;
 
-       HTMLState state;
+       SC_HTMLState state;
 
        gchar *href;
 
@@ -68,21 +69,21 @@ struct _HTMLParser
        gboolean pre;
 };
 
-struct _HTMLAttr
+struct _SC_HTMLAttr
 {
        gchar *name;
        gchar *value;
 };
 
-struct _HTMLTag
+struct _SC_HTMLTag
 {
        gchar *name;
        GList *attr;
 };
 
-HTMLParser *html_parser_new    (FILE           *fp,
+SC_HTMLParser *sc_html_parser_new      (FILE           *fp,
                                 CodeConverter  *conv);
-void html_parser_destroy       (HTMLParser     *parser);
-gchar *html_parse              (HTMLParser     *parser);
+void sc_html_parser_destroy    (SC_HTMLParser  *parser);
+gchar *sc_html_parse           (SC_HTMLParser  *parser);
 
 #endif /* __HTML_H__ */