From c40ef12ec633d188b91efd65bec28e518f987cc0 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 30 Jun 2015 14:13:02 -0700 Subject: [PATCH] compile success --- example/noise.c | 5 +++++ src/soundio.c | 1 + src/soundio.h | 28 ++++++++++++++++++++++++++++ test/unit_tests.c | 5 +++++ 4 files changed, 39 insertions(+) diff --git a/example/noise.c b/example/noise.c index e69de29..4adace6 100644 --- a/example/noise.c +++ b/example/noise.c @@ -0,0 +1,5 @@ +#include "soundio.h" + +int main(int argc, char **argv) { + return 0; +} diff --git a/src/soundio.c b/src/soundio.c index e69de29..5315d84 100644 --- a/src/soundio.c +++ b/src/soundio.c @@ -0,0 +1 @@ +#include "soundio.h" diff --git a/src/soundio.h b/src/soundio.h index e69de29..5d7417b 100644 --- a/src/soundio.h +++ b/src/soundio.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2015 Andrew Kelley + * + * This file is part of libsoundio, which is MIT licensed. + * See http://opensource.org/licenses/MIT + */ + +#ifndef SOUNDIO_SOUNDIO_H +#define SOUNDIO_SOUNDIO_H + +#include "config.h" + +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + +enum SoundIoBackend { + SoundIoBackendPulseAudio, + SoundIoBackendDummy, +}; + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif diff --git a/test/unit_tests.c b/test/unit_tests.c index e69de29..4adace6 100644 --- a/test/unit_tests.c +++ b/test/unit_tests.c @@ -0,0 +1,5 @@ +#include "soundio.h" + +int main(int argc, char **argv) { + return 0; +}