]> code.delx.au - pulseaudio/blob - src/modules/module-defs.h.m4
c961412d8b956992299f49f2663540123853b833
[pulseaudio] / src / modules / module-defs.h.m4
1 dnl $Id$
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
8 #ifndef incmacro
9 #define incmacro
10
11 #include <pulsecore/core.h>
12 #include <pulsecore/module.h>
13
14 gen_symbol(pa__init)
15 gen_symbol(pa__done)
16 gen_symbol(pa__get_author)
17 gen_symbol(pa__get_description)
18 gen_symbol(pa__get_usage)
19 gen_symbol(pa__get_version)
20
21 int pa__init(struct pa_core *c, struct pa_module*m);
22 void pa__done(struct pa_core *c, struct pa_module*m);
23
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);
28
29 #endif