From 1f0961368f58a9fec319d86c79a86a9f0d008cf5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 11 Jan 2006 01:17:39 +0000 Subject: * remove a lot of compiler warnings introduced by using some new GCC flags * 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 --- polyp/module-x11-bell.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'polyp/module-x11-bell.c') diff --git a/polyp/module-x11-bell.c b/polyp/module-x11-bell.c index 084f5d4b..9b08c166 100644 --- a/polyp/module-x11-bell.c +++ b/polyp/module-x11-bell.c @@ -47,14 +47,14 @@ PA_MODULE_VERSION(PACKAGE_VERSION) PA_MODULE_USAGE("sink= sample= display=") struct userdata { - struct pa_core *core; + pa_core *core; int xkb_event_base; char *sink_name; char *scache_item; Display *display; - struct pa_x11_wrapper *x11_wrapper; - struct pa_x11_client *x11_client; + pa_x11_wrapper *x11_wrapper; + pa_x11_client *x11_client; }; static const char* const valid_modargs[] = { @@ -65,7 +65,7 @@ static const char* const valid_modargs[] = { }; static int ring_bell(struct userdata *u, int percent) { - struct pa_sink *s; + pa_sink *s; assert(u); if (!(s = pa_namereg_get(u->core, u->sink_name, PA_NAMEREG_SINK, 1))) { @@ -77,7 +77,7 @@ static int ring_bell(struct userdata *u, int percent) { return 0; } -static int x11_event_callback(struct pa_x11_wrapper *w, XEvent *e, void *userdata) { +static int x11_event_callback(pa_x11_wrapper *w, XEvent *e, void *userdata) { XkbBellNotifyEvent *bne; struct userdata *u = userdata; assert(w && e && u && u->x11_wrapper == w); @@ -95,9 +95,9 @@ static int x11_event_callback(struct pa_x11_wrapper *w, XEvent *e, void *userdat return 1; } -int pa__init(struct pa_core *c, struct pa_module*m) { +int pa__init(pa_core *c, pa_module*m) { struct userdata *u = NULL; - struct pa_modargs *ma = NULL; + pa_modargs *ma = NULL; int major, minor; unsigned int auto_ctrls, auto_values; assert(c && m); @@ -154,7 +154,7 @@ fail: return -1; } -void pa__done(struct pa_core *c, struct pa_module*m) { +void pa__done(pa_core *c, pa_module*m) { struct userdata *u = m->userdata; assert(c && m && u); -- cgit