summaryrefslogtreecommitdiff
path: root/libs/backends
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-13 21:30:13 +0100
committerRobin Gareus <robin@gareus.org>2014-11-13 21:30:13 +0100
commitb9fc616538deab68d229eb126b6ef9cf8c5157ca (patch)
tree85d4109c35497b961db28056933b8f07f0feac1e /libs/backends
parent65fa38103d126513a18170fa7837a0a42e237039 (diff)
prepare for JACK meta-data API
Diffstat (limited to 'libs/backends')
-rw-r--r--libs/backends/jack/weak_libjack.def13
-rw-r--r--libs/backends/jack/weak_libjack.h16
2 files changed, 29 insertions, 0 deletions
diff --git a/libs/backends/jack/weak_libjack.def b/libs/backends/jack/weak_libjack.def
index 495c7b2d3a..45b1dc94a5 100644
--- a/libs/backends/jack/weak_libjack.def
+++ b/libs/backends/jack/weak_libjack.def
@@ -118,4 +118,17 @@ JPFUN(0, int, client_kill_thread, (jack_client_t* c, jack_native_thre
JPFUN(1, int, client_create_thread, \
(jack_client_t* c, jack_native_thread_t *t, int p, int r, void *(*f)(void*), void *a), (c,t,p,r,f,a), 0)
+#if 0
+/* <jack/metadata.h> */
+JPFUN(0, int, set_property, (jack_client_t* c, jack_uuid_t s, const char* k, const char* v, const char* t), (c,s,k,v,t), -1)
+JXFUN(0, int, get_property, (jack_uuid_t s, const char* k, char** v, char** t), (s,k,v,t), if (v) *v=NULL; if (t) *t=NULL; return -1;)
+JVFUN(0, free_description, (jack_description_t* d, int f), (d,f),)
+JXFUN(0, int, get_properties, (jack_uuid_t s, jack_description_t* d), (s,d), if (d) {d->properties = NULL; d->property_cnt = 0;} return -1;)
+JXFUN(0, int, get_all_properties, (jack_description_t** d), (d), if (d) *d=NULL; return -1;)
+JPFUN(0, int, remove_property, (jack_client_t* c, jack_uuid_t s, const char* k), (c,s,k), -1)
+JPFUN(0, int, remove_properties, (jack_client_t* c, jack_uuid_t s), (c,s), -1)
+JPFUN(0, int, remove_all_properties, (jack_client_t* c), (c), -1)
+ (jack_client_t* c, jack_native_thread_t *t, int p, int r, void *(*f)(void*), void *a), (c,t,p,r,f,a), 0)
+#endif
+
#endif // end USE_WEAK_JACK
diff --git a/libs/backends/jack/weak_libjack.h b/libs/backends/jack/weak_libjack.h
index 349861f6ab..32419378e4 100644
--- a/libs/backends/jack/weak_libjack.h
+++ b/libs/backends/jack/weak_libjack.h
@@ -154,6 +154,19 @@ int have_libjack(void);
#define jack_client_open WJACK_client_client_openXXX
+if 0
+/* <jack/metadata.h> */
+#define jack_set_property WJACK_set_property
+#define jack_get_property WJACK_get_property
+#define jack_free_description WJACK_free_description
+#define jack_get_properties WJACK_get_properties
+#define jack_get_all_properties WJACK_get_all_properties
+#define jack_remove_property WJACK_remove_property
+#define jack_remove_properties WJACK_remove_properties
+#define jack_remove_all_properties WJACK_remove_all_properties
+#define jack_set_property_change_callback WJACK_set_property_change_callback
+#endif
+
#endif // end USE_WEAK_JACK
#include <jack/jack.h>
@@ -162,6 +175,9 @@ int have_libjack(void);
#include <jack/midiport.h>
#include <jack/session.h>
#include <jack/thread.h>
+#if 0
+#include <jack/metadata.h>
+#endif
#ifdef USE_WEAK_JACK