root/trunk/module.h

Revision 41, 1.1 kB (checked in by jesus, 9 years ago)

autoconf support

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /* ======================================================================
2  * Copyright (c) 2006 Theo Schlossnagle
3  * All rights reserved.
4  * The following code was written by Theo Schlossnagle <jesus@omniti.com>
5  * This code was written to facilitate clustered logging via Spread.
6  * More information on Spread can be found at http://www.spread.org/
7  * Please refer to the LICENSE file before using this software.
8  * ======================================================================
9 */
10
11 #ifndef _SLD_MODULE_H
12 #define _SLD_MODULE_H
13
14 #include "sld_config.h"
15
16 typedef int  (*ModuleInit)(const char *);
17 typedef void (*ModuleLogLine)(SpreadConfiguration *,
18                               const char *, const char *, const char *);
19 typedef void (*ModuleShutdown)();
20
21 typedef struct sld_module_abi {
22   char          *module_name;
23   ModuleInit     init;
24   ModuleLogLine  logline;
25   ModuleShutdown shutdown;
26 } sld_module_abi_t;
27
28 void module_init();
29 void module_load(const char *symbol, const char *config);
30 int  module_load_finalize();
31 sld_module_abi_t *module_get(const char *symbol);
32
33 #endif
Note: See TracBrowser for help on using the browser.