2
0
Fork 0
lighttpd2/include/lighttpd/options.h

35 lines
680 B
C
Raw Normal View History

2008-06-24 19:19:20 +00:00
#ifndef _LIGHTTPD_OPTIONS_H_
#define _LIGHTTPD_OPTIONS_H_
#ifndef _LIGHTTPD_BASE_H_
#error Please include <lighttpd/base.h> instead of this file
#endif
union option_value {
gpointer ptr;
gint64 number;
gboolean boolean;
/* some common pointer types */
GString *string;
GArray *list;
GHashTable *hash;
action *action;
condition *cond;
2008-06-24 19:19:20 +00:00
};
2008-07-08 19:32:51 +00:00
struct option_set {
2008-06-24 19:19:20 +00:00
size_t ndx;
option_value value;
server_option *sopt;
2008-06-24 19:19:20 +00:00
};
/* Extract content from value, value set to none */
LI_API option_value value_extract(value *val);
2008-07-08 19:29:02 +00:00
LI_API gpointer value_extract_ptr(value *val);
LI_API gint64 value_extract_number(value *val);
LI_API gboolean value_extract_bool(value *val);
2008-07-08 19:29:02 +00:00
2008-06-24 19:19:20 +00:00
#endif