aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_buffer.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 19:39:08 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 21:36:09 +0100
commit823c618d241e7e45f31981c437215bc35664c385 (patch)
tree39220111d78758ced0a764e55d23c70020b34c69 /src/pcm_buffer.h
parent51cb6a0a44f8a70927de6516782e3a9a02b3b3dc (diff)
{encoder,output}_api.h: allow compiling as C++
Diffstat (limited to 'src/pcm_buffer.h')
-rw-r--r--src/pcm_buffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pcm_buffer.h b/src/pcm_buffer.h
index 4502976f..5d6382d5 100644
--- a/src/pcm_buffer.h
+++ b/src/pcm_buffer.h
@@ -62,6 +62,10 @@ pcm_buffer_deinit(struct pcm_buffer *buffer)
buffer->buffer = NULL;
}
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Get the buffer, and guarantee a minimum size. This buffer becomes
* invalid with the next pcm_buffer_get() call.
@@ -74,4 +78,8 @@ G_GNUC_MALLOC
void *
pcm_buffer_get(struct pcm_buffer *buffer, size_t size);
+#ifdef __cplusplus
+}
+#endif
+
#endif