diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
commit | 1f0961368f58a9fec319d86c79a86a9f0d008cf5 (patch) | |
tree | c712a897bb34ade3c03a06ba754264153ac3bc16 /polyp/client.h | |
parent | 6c512fb5a3fdb578179be79672c5096de1a1d25b (diff) |
* 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
Diffstat (limited to 'polyp/client.h')
-rw-r--r-- | polyp/client.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/polyp/client.h b/polyp/client.h index 2a3a09e0..198dbbf6 100644 --- a/polyp/client.h +++ b/polyp/client.h @@ -30,28 +30,30 @@ * attached. That way the user may generate a listing of all connected * clients easily and kill them if he wants.*/ +typedef struct pa_client pa_client; + struct pa_client { uint32_t index; pa_typeid_t typeid; - struct pa_module *owner; + pa_module *owner; char *name; - struct pa_core *core; + pa_core *core; - void (*kill)(struct pa_client *c); + void (*kill)(pa_client *c); void *userdata; }; -struct pa_client *pa_client_new(struct pa_core *c, pa_typeid_t typeid, const char *name); +pa_client *pa_client_new(pa_core *c, pa_typeid_t typeid, const char *name); /* This function should be called only by the code that created the client */ -void pa_client_free(struct pa_client *c); +void pa_client_free(pa_client *c); /* Code that didn't create the client should call this function to * request destruction of the client */ -void pa_client_kill(struct pa_client *c); +void pa_client_kill(pa_client *c); /* Rename the client */ -void pa_client_set_name(struct pa_client *c, const char *name); +void pa_client_set_name(pa_client *c, const char *name); #endif |