mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
Move xml stuff out of plugins
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user