Added resources pointer to service
Added resources pointer to service
This commit is contained in:
@ -137,6 +137,7 @@ SERVICE *service;
|
|||||||
service->filters = NULL;
|
service->filters = NULL;
|
||||||
service->n_filters = 0;
|
service->n_filters = 0;
|
||||||
service->weightby = 0;
|
service->weightby = 0;
|
||||||
|
service->resources = NULL;
|
||||||
spinlock_init(&service->spin);
|
spinlock_init(&service->spin);
|
||||||
spinlock_init(&service->users_table_spin);
|
spinlock_init(&service->users_table_spin);
|
||||||
memset(&service->rate_limit, 0, sizeof(SERVICE_REFRESH_RATE));
|
memset(&service->rate_limit, 0, sizeof(SERVICE_REFRESH_RATE));
|
||||||
|
|||||||
@ -124,6 +124,7 @@ typedef struct service {
|
|||||||
struct users *users; /**< The user data for this service */
|
struct users *users; /**< The user data for this service */
|
||||||
int enable_root; /**< Allow root user access */
|
int enable_root; /**< Allow root user access */
|
||||||
int localhost_match_wildcard_host; /**< Match localhost against wildcard */
|
int localhost_match_wildcard_host; /**< Match localhost against wildcard */
|
||||||
|
char **resources; /** resource list, todo: use hashtables */
|
||||||
CONFIG_PARAMETER*
|
CONFIG_PARAMETER*
|
||||||
svc_config_param; /*< list of config params and values */
|
svc_config_param; /*< list of config params and values */
|
||||||
int svc_config_version; /*< Version number of configuration */
|
int svc_config_version; /*< Version number of configuration */
|
||||||
|
|||||||
Reference in New Issue
Block a user