mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Add auth handler to plugin
This commit is contained in:
parent
e2fd480c78
commit
1b8244b7f3
@ -31,6 +31,7 @@
|
||||
#include <pthread.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "err.h"
|
||||
|
@ -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);
|
||||
|
||||
|
@ -22,7 +22,8 @@ struct tag_xmlstruct;
|
||||
typedef struct tag_xmlstruct XMLSTRUCT;
|
||||
|
||||
typedef struct tag_plugin_output_fn {
|
||||
void (*handler)(WS_CONNINFO *pwsc);
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user