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

35 lines
709 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 liOptionValue {
gpointer ptr;
gint64 number;
gboolean boolean;
/* some common pointer types */
GString *string;
GArray *list;
GHashTable *hash;
liAction *action;
liCondition *cond;
2008-06-24 19:19:20 +00:00
};
struct liOptionSet {
2008-06-24 19:19:20 +00:00
size_t ndx;
liOptionValue value;
liServerOption *sopt;
2008-06-24 19:19:20 +00:00
};
/* Extract content from value, value set to none */
2009-07-09 20:17:24 +00:00
LI_API liOptionValue li_value_extract(liValue *val);
2008-07-08 19:29:02 +00:00
2009-07-09 20:17:24 +00:00
LI_API gpointer li_value_extract_ptr(liValue *val);
LI_API gint64 li_value_extract_number(liValue *val);
LI_API gboolean li_value_extract_bool(liValue *val);
2008-07-08 19:29:02 +00:00
2008-06-24 19:19:20 +00:00
#endif