Move xml stuff out of plugins

This commit is contained in:
Ron Pedde
2006-04-25 10:02:43 +00:00
parent 1b8244b7f3
commit b10762b4d5
3 changed files with 30 additions and 96 deletions

View File

@@ -18,9 +18,6 @@ typedef void* PARSETREE;
struct tag_ws_conninfo;
typedef struct tag_ws_conninfo WS_CONNINFO;
struct tag_xmlstruct;
typedef struct tag_xmlstruct XMLSTRUCT;
typedef struct tag_plugin_output_fn {
void(*handler)(WS_CONNINFO *pwsc);
int(*auth)(WS_CONNINFO *pwsc, char *username, char *pw);
@@ -148,18 +145,16 @@ typedef struct tag_dbqueryinfo {
} DBQUERYINFO;
typedef struct tag_plugin_input_fn {
/* xml helpers */
XMLSTRUCT* (*xml_init)(WS_CONNINFO *, int);
void (*xml_push)(XMLSTRUCT *, char *);
void (*xml_pop)(XMLSTRUCT *);
void (*xml_output)(XMLSTRUCT *, char *, char *, ...);
void (*xml_deinit)(XMLSTRUCT *);
/* webserver helpers */
char* (*ws_uri)(WS_CONNINFO *);
void (*ws_close)(WS_CONNINFO *);
int (*ws_returnerror)(WS_CONNINFO *, int, char *);
char* (*ws_getvar)(WS_CONNINFO *, char *);
int (*ws_writefd)(WS_CONNINFO *, char *, ...);
int (*ws_addresponseheader)(WS_CONNINFO *, char *, char *, ...);
void (*ws_emitheaders)(WS_CONNINFO *);
int (*ws_fd)(WS_CONNINFO *);
char* (*ws_getrequestheader)(WS_CONNINFO *, char *);
/* misc helpers */
char* (*server_ver)(void);