mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
commands used for this (executed from the pulseaudio/src directory):
find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \
-a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \
-a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
-a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
-a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \
-a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \
-exec sed -i -e 's/\bpa_bool_t\b/bool/g' \
-e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \;
and:
sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \
-e '181,194!s/\bTRUE\b/true/' -e \
'181,194!s/\bFALSE\b/false/' pulsecore/macro.h
35 lines
1 KiB
Text
35 lines
1 KiB
Text
changecom(`/*', `*/')dnl
|
|
define(`module_name', patsubst(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 <pulsecore/core.h>
|
|
#include <pulsecore/module.h>
|
|
#include <pulsecore/macro.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)
|
|
gen_symbol(pa__get_deprecated)
|
|
gen_symbol(pa__load_once)
|
|
gen_symbol(pa__get_n_used)
|
|
|
|
int pa__init(pa_module*m);
|
|
void pa__done(pa_module*m);
|
|
int pa__get_n_used(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);
|
|
const char* pa__get_deprecated(void);
|
|
bool pa__load_once(void);
|
|
|
|
#endif
|