summaryrefslogtreecommitdiffstats
path: root/polyp/mcalign.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-01-11 01:17:39 +0000
committerLennart Poettering <lennart@poettering.net>2006-01-11 01:17:39 +0000
commit1f0961368f58a9fec319d86c79a86a9f0d008cf5 (patch)
treec712a897bb34ade3c03a06ba754264153ac3bc16 /polyp/mcalign.h
parent6c512fb5a3fdb578179be79672c5096de1a1d25b (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/mcalign.h')
-rw-r--r--polyp/mcalign.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/polyp/mcalign.h b/polyp/mcalign.h
index 925f438a..5de75bc7 100644
--- a/polyp/mcalign.h
+++ b/polyp/mcalign.h
@@ -36,10 +36,10 @@
* 0, the memchunk *c is valid and aligned to the granularity. Some
* pseudocode illustrating this:
*
- * struct pa_mcalign *a = pa_mcalign_new(4, NULL);
+ * pa_mcalign *a = pa_mcalign_new(4, NULL);
*
* for (;;) {
- * struct pa_memchunk input;
+ * pa_memchunk input;
*
* ... fill input ...
*
@@ -47,7 +47,7 @@
* pa_memblock_unref(input.memblock);
*
* for (;;) {
- * struct pa_memchunk output;
+ * pa_memchunk output;
*
* if (pa_mcalign_pop(m, &output) < 0)
* break;
@@ -61,17 +61,17 @@
* pa_memchunk_free(a);
* */
-struct pa_mcalign;
+typedef struct pa_mcalign pa_mcalign;
-struct pa_mcalign *pa_mcalign_new(size_t base, struct pa_memblock_stat *s);
-void pa_mcalign_free(struct pa_mcalign *m);
+pa_mcalign *pa_mcalign_new(size_t base, pa_memblock_stat *s);
+void pa_mcalign_free(pa_mcalign *m);
/* Push a new memchunk into the aligner. The caller of this routine
* has to free the memchunk by himself. */
-void pa_mcalign_push(struct pa_mcalign *m, const struct pa_memchunk *c);
+void pa_mcalign_push(pa_mcalign *m, const pa_memchunk *c);
/* Pop a new memchunk from the aligner. Returns 0 when sucessful,
* nonzero otherwise. */
-int pa_mcalign_pop(struct pa_mcalign *m, struct pa_memchunk *c);
+int pa_mcalign_pop(pa_mcalign *m, pa_memchunk *c);
#endif