#include <W3Core.h>
#include <W3HTTP.h>
+#include <W3Tag.h>
#include <W3URL.h>
#include <W3Util.h> /* It has some useful functions, you know */
}
}
+void html_handler(char* tagname, char** attr){
+}
+
void render_site(){
+ if(databuf != NULL){
+ W3_Tag_Parse(databuf, datalen, html_handler);
+ }
}
int main(int argc, char** argv) {
# $Id$
.PHONY: clean install
-OBJS = ./Core.o ./Util.o ./DNS.o ./HTTP.o ./Gopher.o ./POP3.o ./File.o ./URL.o
+OBJS = ./Core.o ./Util.o ./DNS.o ./HTTP.o ./Gopher.o ./POP3.o ./File.o ./URL.o ./Tag.o
ifeq ($(WINDOWS),YES)
./w3.dll: $(OBJS)
--- /dev/null
+/* $Id$ */
+#include "W3Tag.h"
+
+#include <stddef.h>
+
+void W3_Tag_Parse(char* data, size_t size, void(*func)(char* tagname, char** attr)){
+}
--- /dev/null
+/* $Id$ */
+#ifndef __W3TAG_H__
+#define __W3TAG_H__
+
+#include <stddef.h>
+
+void W3_Tag_Parse(char* data, size_t size, void(*func)(char* tagname, char** attr));
+
+#endif
extern "C" {
#endif
-#define LIBW3_VERSION "2.0D" \
+#define LIBW3_VERSION "2.1" \
SUFFIX
#ifdef __cplusplus