Add auth handler to plugin

This commit is contained in:
Ron Pedde 2006-04-24 08:44:04 +00:00
parent e2fd480c78
commit 1b8244b7f3
3 changed files with 5 additions and 3 deletions

View File

@ -31,6 +31,7 @@
#include <pthread.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "err.h"

View File

@ -89,7 +89,7 @@ void pi_log(int, char *, ...);
/* db helpers */
int pi_db_count(void);
int pi_db_enum_start(char **pe, DBQUERYINFO *pinfo);
int pi_db_enum_fetch_row(char **pe, char ***row, DBQUERYINFO *pinfo);
int pi_db_enum_fetch_row(char **pe, PACKED_MP3FILE *row, DBQUERYINFO *pinfo);
int pi_db_enum_end(char **pe);
void pi_stream(WS_CONNINFO *pwsc, DBQUERYINFO *pqi, char *id);

View File

@ -23,6 +23,7 @@ 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);
} PLUGIN_OUTPUT_FN;
typedef struct tag_plugin_info {
@ -31,7 +32,7 @@ typedef struct tag_plugin_info {
char *server;
char *url; /* regex of namespace to handle if OUTPUT type */
void *handler_functions;
void *input_functions;
void *fn; /* input functions*/
} PLUGIN_INFO;
/* xml helpers for output plugins */