mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-25 04:17:42 +00:00
MINOR: global: add several 51Degrees members to global
These are : fiftyoneDegreesDataSet _51d_data_set char *_51d_data_file_path char _51d_property_seperator struct list _51d_property_names
This commit is contained in:
parent
0ca65f8217
commit
eef3f9fbd3
@ -32,6 +32,10 @@
|
||||
#include <types/proxy.h>
|
||||
#include <types/task.h>
|
||||
|
||||
#ifdef USE_51DEGREES
|
||||
#include <51Degrees.h>
|
||||
#endif
|
||||
|
||||
#ifndef UNIX_MAX_PATH
|
||||
#define UNIX_MAX_PATH 108
|
||||
#endif
|
||||
@ -180,8 +184,22 @@ struct global {
|
||||
char separator;
|
||||
} deviceatlas;
|
||||
#endif
|
||||
|
||||
#ifdef USE_51DEGREES
|
||||
fiftyoneDegreesDataSet _51d_data_set;
|
||||
char * _51d_data_file_path; /* the path of the data file. this is taken from 51degrees-data-file in config. */
|
||||
char _51d_property_seperator; /* the seperator to use in the response for the values. this is taken from 51degrees-property-seperator from config. */
|
||||
struct list _51d_property_names; /* list of properties to load into the data set. this is taken from 51degrees-property-name-list from config. */
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef USE_51DEGREES
|
||||
struct _51d_property_names {
|
||||
struct list list;
|
||||
char *name;
|
||||
};
|
||||
#endif
|
||||
|
||||
extern struct global global;
|
||||
extern int pid; /* current process id */
|
||||
extern int relative_pid; /* process id starting at 1 */
|
||||
|
Loading…
Reference in New Issue
Block a user