Browse Source

[core] remove lighttpd-glue.h from base.h

personal/stbuehler/wip
Stefan Bühler 11 years ago
parent
commit
8ae6902602
  1. 2
      include/lighttpd/base.h
  2. 4
      include/lighttpd/lighttpd-glue.h
  3. 3
      src/main/lighttpd_glue.c
  4. 2
      src/main/response.c
  5. 2
      src/modules/mod_accesslog.c
  6. 2
      src/modules/mod_debug.c
  7. 2
      src/modules/mod_progress.c

2
include/lighttpd/base.h

@ -68,9 +68,7 @@
#include <lighttpd/collect.h>
#include <lighttpd/network.h>
#include <lighttpd/etag.h>
#include <lighttpd/lighttpd-glue.h>
#include <lighttpd/utils.h>
#include <lighttpd/lighttpd-glue.h>
#define SERVER_VERSION ((guint) 0x01FF0000)

4
include/lighttpd/lighttpd-glue.h

@ -1,10 +1,6 @@
#ifndef _LIGHTTPD_LIGHTTPD_GLUE_H_
#define _LIGHTTPD_LIGHTTPD_GLUE_H_
#ifndef _LIGHTTPD_BASE_H_
#error Please include <lighttpd/base.h> instead of this file
#endif
/* returns the description for a given http status code and sets the len to the length of the returned string */
LI_API gchar *li_http_status_string(guint status_code, guint *len);
/* returns the liHttpMethod enum entry matching the given string */

3
src/main/lighttpd_glue.c

@ -1,6 +1,7 @@
#include <lighttpd/base.h>
#include <lighttpd/plugin_core.h>
#include <lighttpd/lighttpd-glue.h>
#define SET_LEN_AND_RETURN_STR(x) \
do { \

2
src/main/response.c

@ -2,6 +2,8 @@
#include <lighttpd/base.h>
#include <lighttpd/plugin_core.h>
#include <lighttpd/lighttpd-glue.h>
void li_response_init(liResponse *resp) {
resp->headers = li_http_headers_new();
resp->http_status = 0;

2
src/modules/mod_accesslog.c

@ -36,6 +36,8 @@
#include <lighttpd/base.h>
#include <lighttpd/plugin_core.h>
#include <lighttpd/lighttpd-glue.h>
LI_API gboolean mod_accesslog_init(liModules *mods, liModule *mod);
LI_API gboolean mod_accesslog_free(liModules *mods, liModule *mod);

2
src/modules/mod_debug.c

@ -35,6 +35,8 @@
#include <lighttpd/base.h>
#include <lighttpd/lighttpd-glue.h>
#ifdef WITH_PROFILER
# include <lighttpd/profiler.h>
#endif

2
src/modules/mod_progress.c

@ -64,6 +64,8 @@
#include <lighttpd/base.h>
#include <lighttpd/lighttpd-glue.h>
LI_API gboolean mod_progress_init(liModules *mods, liModule *mod);
LI_API gboolean mod_progress_free(liModules *mods, liModule *mod);

Loading…
Cancel
Save