summaryrefslogtreecommitdiffstats
path: root/polyp/polyplib-def.h
diff options
context:
space:
mode:
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