diff options
Diffstat (limited to 'polyp/sample.h')
-rw-r--r-- | polyp/sample.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/polyp/sample.h b/polyp/sample.h index 01a4efcf..25027879 100644 --- a/polyp/sample.h +++ b/polyp/sample.h @@ -25,6 +25,10 @@ #include <inttypes.h> #include <sys/types.h> +#ifdef __cplusplus +extern "C" { +#endif + enum pa_sample_format { PA_SAMPLE_U8, PA_SAMPLE_ALAW, @@ -60,4 +64,8 @@ int pa_sample_spec_equal(const struct pa_sample_spec*a, const struct pa_sample_s #define PA_SAMPLE_SNPRINT_MAX_LENGTH 32 void pa_sample_snprint(char *s, size_t l, const struct pa_sample_spec *spec); +#ifdef __cplusplus +} +#endif + #endif |