mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
29 lines
844 B
Text
29 lines
844 B
Text
dnl $Id$
|
|
changecom(`/*', `*/')dnl
|
|
define(`module_name', patsubst(patsubst(fname, `-symdef.h$'), `[^0-9a-zA-Z]', `_'))dnl
|
|
define(`c_symbol', patsubst(module_name, `[^0-9a-zA-Z]', `_'))dnl
|
|
define(`c_macro', patsubst(module_name, `[^0-9a-zA-Z]', `'))dnl
|
|
define(`incmacro', `foo'c_macro`symdeffoo')dnl
|
|
define(`gen_symbol', `#define $1 'module_name`_LTX_$1')dnl
|
|
#ifndef incmacro
|
|
#define incmacro
|
|
|
|
#include "core.h"
|
|
#include "module.h"
|
|
|
|
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);
|
|
|
|
const char* pa__get_author(void);
|
|
const char* pa__get_description(void);
|
|
const char* pa__get_usage(void);
|
|
const char* pa__get_version(void);
|
|
|
|
#endif
|