summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-def.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-14 20:25:32 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-14 20:25:32 +0000
commit22cb23eedb2eae7c79dc8fcf395be08bfc666256 (patch)
treef0993d4a26cb6e311d052b40ac5b8efc1239c145 /polyp/polyplib-def.h
parent1c2ec47cf1506ad1c75c088d476ae382170df62c (diff)
implement proper refcounting in polyplib
split polyplib to multiple modules add some prelimenary documentation add doxygen support git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@123 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-def.h')
-rw-r--r--polyp/polyplib-def.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/polyp/polyplib-def.h b/polyp/polyplib-def.h
index d96c6899..fc19be69 100644
--- a/polyp/polyplib-def.h
+++ b/polyp/polyplib-def.h
@@ -23,14 +23,13 @@
***/
#include <inttypes.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include "native-common.h"
+#include "cdecl.h"
+
+PA_C_DECL_BEGIN
enum pa_stream_direction {
+ PA_STREAM_NODIRECTION,
PA_STREAM_PLAYBACK,
PA_STREAM_RECORD,
PA_STREAM_UPLOAD
@@ -43,9 +42,9 @@ struct pa_buffer_attr {
uint32_t minreq;
uint32_t fragsize;
};
-
-#ifdef __cplusplus
-}
-#endif
+
+#define PA_INVALID_INDEX ((uint32_t) -1)
+
+PA_C_DECL_END
#endif