From b9fc616538deab68d229eb126b6ef9cf8c5157ca Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 13 Nov 2014 21:30:13 +0100 Subject: [PATCH] prepare for JACK meta-data API --- libs/backends/jack/weak_libjack.def | 13 +++++++++++++ libs/backends/jack/weak_libjack.h | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) 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 +/* */ +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 +/* */ +#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 @@ -162,6 +175,9 @@ int have_libjack(void); #include #include #include +#if 0 +#include +#endif #ifdef USE_WEAK_JACK