summaryrefslogtreecommitdiffstats
path: root/mod_log_sql.h
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2004-01-20 20:33:20 +0000
committerGravatar Edward Rudd 2004-01-20 20:33:20 +0000
commita5d838fab50df5d39396470b2bc9bf25e81cad53 (patch)
tree01968c890dc1c74ec00dd650646a3adf65b4c3e8 /mod_log_sql.h
parentccd1b379bfc208c34ad61fc42cac4a797af6d153 (diff)
Added item registration function and added functions to new system header mod_log_sql.h
Registered core item functions in pre_config
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 */