AC_SUBST(PA_MAJORMINOR, "$PACKAGE_VERSION")
AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/polypaudio/])
+AC_SUBST(PA_API_VERSION, 6)
+
if type -p stow > /dev/null && test -d /usr/local/stow ; then
AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
- improve module-oss-mmap latency measurement
- pacat sample type args
- filter capture data in client through alignment
-- add tunnel module for sources
- add radio module
- make autoload list use idxset
- libwrap
#include <polyp/polyplib-error.h>
#include <polyp/mainloop.h>
#include <polyp/mainloop-signal.h>
+#include <polyp/polyplib-version.h>
-#if PA_API_VERSION != PA_API_VERSION_0_6
+#if PA_API_VERSION != 6
#error Invalid Polypaudio API version
#endif
mainloop_api->io_enable(stdio_event, PA_IO_EVENT_OUTPUT);
if (buffer) {
- fprintf(stderr, "Buffer overrrun, dropping incoming data\n");
+ fprintf(stderr, "Buffer overrun, dropping incoming data\n");
return;
}
case PA_STREAM_FAILED:
default:
- fprintf(stderr, "Stream errror: %s\n", pa_strerror(pa_context_errno(pa_stream_get_context(s))));
+ fprintf(stderr, "Stream error: %s\n", pa_strerror(pa_context_errno(pa_stream_get_context(s))));
quit(1);
}
}
#include <polyp/mainloop-signal.h>
#include <polyp/sample.h>
-#if PA_API_VERSION != PA_API_VERSION_0_6
+#if PA_API_VERSION != 6
#error Invalid Polypaudio API version
#endif
#include <polyp/mainloop-signal.h>
#include <polyp/polyplib-version.h>
-#if PA_API_VERSION != PA_API_VERSION_0_6
+#if PA_API_VERSION != 6
#error Invalid Polypaudio API version
#endif
return pa_operation_ref(o);
}
-const char* pa_get_library_version(void) {
- return PACKAGE_VERSION;
-}
-
struct pa_operation* pa_context_set_default_sink(struct pa_context *c, const char *name, void(*cb)(struct pa_context*c, int success, void *userdata), void *userdata) {
struct pa_tagstruct *t;
struct pa_operation *o;
return pa_operation_ref(o);
}
+
+const char* pa_get_library_version(void) {
+ return PACKAGE_VERSION;
+}
+
USA.
***/
+/* WARNING: Make sure to edit the real source file polyplib-version.h.in! */
+
/** \file
* Define header version */
it. */
#define pa_get_headers_version() ("@PACKAGE_VERSION@")
+/** Return the version of the library the current application is linked to. */
+const char* pa_get_library_version(void);
+
+/** The current API version. Version 6 relates to polypaudio
+ * 0.6. Prior versions (i.e. Polypaudio 0.5.1 and older) have
+ * PA_API_VERSION undefined. */
+#define PA_API_VERSION @PA_API_VERSION@
+
#endif