2 changecom(`/*', `*/')dnl
3 define(`module_name', patsubst(patsubst(patsubst(fname, `-symdef.h$'), `^.*/'), `[^0-9a-zA-Z]', `_'))dnl
4 define(`c_symbol', patsubst(module_name, `[^0-9a-zA-Z]', `_'))dnl
5 define(`c_macro', patsubst(module_name, `[^0-9a-zA-Z]', `'))dnl
6 define(`incmacro', `foo'c_macro`symdeffoo')dnl
7 define(`gen_symbol', `#define $1 'module_name`_LTX_$1')dnl
11 #include <pulsecore/core.h>
12 #include <pulsecore/module.h>
16 gen_symbol(pa__get_author)
17 gen_symbol(pa__get_description)
18 gen_symbol(pa__get_usage)
19 gen_symbol(pa__get_version)
21 int pa__init(struct pa_core *c, struct pa_module*m);
22 void pa__done(struct pa_core *c, struct pa_module*m);
24 const char* pa__get_author(void);
25 const char* pa__get_description(void);
26 const char* pa__get_usage(void);
27 const char* pa__get_version(void);