Added resources pointer to service

Added resources pointer to service
This commit is contained in:
MassimilianoPinto
2014-10-13 18:18:30 +02:00
parent b15ebfe14a
commit d645088645
2 changed files with 2 additions and 0 deletions

View File

@ -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));

View File

@ -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 */