2004-10-30 01:55:16 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
changecom(`/*', `*/')dnl
|
2006-02-16 19:19:58 +00:00
|
|
|
define(`module_name', patsubst(patsubst(patsubst(fname, `-symdef.h$'), `^.*/'), `[^0-9a-zA-Z]', `_'))dnl
|
2004-12-11 00:10:41 +00:00
|
|
|
define(`c_symbol', patsubst(module_name, `[^0-9a-zA-Z]', `_'))dnl
|
|
|
|
|
define(`c_macro', patsubst(module_name, `[^0-9a-zA-Z]', `'))dnl
|
2004-10-30 01:55:16 +00:00
|
|
|
define(`incmacro', `foo'c_macro`symdeffoo')dnl
|
2004-12-11 00:10:41 +00:00
|
|
|
define(`gen_symbol', `#define $1 'module_name`_LTX_$1')dnl
|
2004-10-30 01:55:16 +00:00
|
|
|
#ifndef incmacro
|
|
|
|
|
#define incmacro
|
|
|
|
|
|
2006-02-16 19:19:58 +00:00
|
|
|
#include <polypcore/core.h>
|
|
|
|
|
#include <polypcore/module.h>
|
2004-12-11 00:10:41 +00:00
|
|
|
|
2004-10-30 01:55:16 +00:00
|
|
|
gen_symbol(pa__init)
|
|
|
|
|
gen_symbol(pa__done)
|
|
|
|
|
gen_symbol(pa__get_author)
|
|
|
|
|
gen_symbol(pa__get_description)
|
|
|
|
|
gen_symbol(pa__get_usage)
|
|
|
|
|
gen_symbol(pa__get_version)
|
|
|
|
|
|
|
|
|
|
int pa__init(struct pa_core *c, struct pa_module*m);
|
|
|
|
|
void pa__done(struct pa_core *c, struct pa_module*m);
|
|
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
const char* pa__get_author(void);
|
|
|
|
|
const char* pa__get_description(void);
|
|
|
|
|
const char* pa__get_usage(void);
|
|
|
|
|
const char* pa__get_version(void);
|
|
|
|
|
|
2004-10-30 01:55:16 +00:00
|
|
|
#endif
|