summaryrefslogtreecommitdiffstats
path: root/mod_log_sql.h
diff options
context:
space:
mode:
Diffstat (limited to 'mod_log_sql.h')
-rw-r--r--mod_log_sql.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/mod_log_sql.h b/mod_log_sql.h
new file mode 100644
index 0000000..90f4c06
--- /dev/null
+++ b/mod_log_sql.h
@@ -0,0 +1,33 @@
1/* $Header: /home/cvs/mod_log_sql/mod_log_sql.h,v 1.1 2004/01/20 20:33:20 urkle Exp $ */
2#ifndef MOD_LOG_SQL_H
3#define MOD_LOG_SQL_H
4
5/* Create a set of LOGSQL_DECLARE(type), LOGSQL_DECLARE_NONSTD(type) and
6 * LOGSQL_DECLARE_DATA with appropriate export and import tags for the platform
7 */
8#if !defined(WIN32)
9#define LOGSQL_DECLARE(type) type
10#define LOGSQL_DECLARE_NONSTD(type) type
11#define LOGSQL_DECLARE_DATA
12#elif defined(LOGSQL_DECLARE_STATIC)
13#define LOGSQL_DECLARE(type) type __stdcall
14#define LOGSQL_DECLARE_NONSTD(type) type
15#define LOGSQL_DECLARE_DATA
16#elif defined(LOGSQL_DECLARE_EXPORT)
17#define LOGSQL_DECLARE(type) __declspec(dllexport) type __stdcall
18#define LOGSQL_DECLARE_NONSTD(type) __declspec(dllexport) type
19#define LOGSQL_DECLARE_DATA __declspec(dllexport)
20#else
21#define LOGSQL_DECLARE(type) __declspec(dllimport) type __stdcall
22#define LOGSQL_DECLARE_NONSTD(type) __declspec(dllimport) type
23#define LOGSQL_DECLARE_DATA __declspec(dllimport)
24#endif
25
26typedef const char *log_sql_item_func(request_rec *r, char *a);
27
28/* Registration Function for extract functions */
29LOGSQL_DECLARE(void) log_sql_register_item(apr_pool_t *p, char *key,
30 log_sql_item_func *func, const char *sql_field_name,
31 int want_orig_default, int string_contents);
32
33#endif /* MOD_LOG_SQL_H */