Changeset 1911
- Timestamp:
- 03/07/08 05:37:15 (2 years ago)
- Files:
-
- jack2/trunk/jackmp/ChangeLog (modified) (1 diff)
- jack2/trunk/jackmp/common/JackAPI.cpp (modified) (2 diffs)
- jack2/trunk/jackmp/common/JackAPIWrapper.cpp (modified) (2 diffs)
- jack2/trunk/jackmp/common/JackLibAPI.cpp (modified) (4 diffs)
- jack2/trunk/jackmp/common/JackServerAPI.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
jack2/trunk/jackmp/ChangeLog
r1910 r1911 19 19 --------------------------- 20 20 21 2008-03-07 Stephane Letz <letz@grame.fr> 22 23 * Define an internal jack_client_open_aux needed for library wrapper feature. 24 21 25 2008-03-06 Stephane Letz <letz@grame.fr> 22 26 jack2/trunk/jackmp/common/JackAPI.cpp
r1909 r1911 49 49 #endif 50 50 51 EXPORT jack_client_t * jack_client_open (const char *client_name, 51 EXPORT jack_client_t * jack_client_open_aux (const char *client_name, 52 jack_options_t options, 53 jack_status_t *status, ...); 54 EXPORT jack_client_t * jack_client_open (const char *client_name, 52 55 jack_options_t options, 53 56 jack_status_t *status, ...); … … 261 264 if (getenv("JACK_START_SERVER") == NULL) 262 265 options |= JackNoStartServer; 263 return jack_client_open (client_name, (jack_options_t)options, NULL);266 return jack_client_open_aux(client_name, (jack_options_t)options, NULL); 264 267 } 265 268 jack2/trunk/jackmp/common/JackAPIWrapper.cpp
r1909 r1911 32 32 #endif 33 33 34 EXPORT jack_client_t * jack_client_open (const char *client_name,35 jack_options_t options,36 jack_status_t *status, ...);37 EXPORT jack_client_t * jack_client_new (const char *client_name);38 34 EXPORT int jack_client_name_size (void); 39 35 EXPORT char* jack_get_client_name (jack_client_t *client); … … 829 825 EXPORT jack_client_t * jack_client_open(const char *client_name, jack_options_t options, jack_status_t *status, ...) 830 826 { 827 // TODO : in "autodstart mode", has to load jackdrc file and figure out which server has to be started... 828 831 829 // Library check... 832 830 if (!open_library()) jack2/trunk/jackmp/common/JackLibAPI.cpp
r1909 r1911 40 40 #endif 41 41 42 EXPORT jack_client_t * jack_client_open (const char *client_name, 42 EXPORT jack_client_t * jack_client_open_aux (const char *client_name, 43 jack_options_t options, 44 jack_status_t *status, ...); 45 EXPORT jack_client_t * jack_client_open (const char *client_name, 43 46 jack_options_t options, 44 47 jack_status_t *status, ...); … … 52 55 int JackLibGlobals::fClientCount = 0; 53 56 54 EXPORT jack_client_t* jack_client_open (const char* ext_client_name, jack_options_t options, jack_status_t* status, ...)57 EXPORT jack_client_t* jack_client_open_aux(const char* ext_client_name, jack_options_t options, jack_status_t* status, ...) 55 58 { 56 59 va_list ap; /* variable argument pointer */ … … 81 84 JackLog("jack_client_open %s\n", client_name); 82 85 if (client_name == NULL) { 83 jack_error("jack_client_ newcalled with a NULL client_name");86 jack_error("jack_client_open called with a NULL client_name"); 84 87 return NULL; 85 88 } … … 117 120 } 118 121 122 EXPORT jack_client_t* jack_client_open(const char* ext_client_name, jack_options_t options, jack_status_t* status, ...) 123 { 124 va_list ap; 125 va_start(ap, status); 126 jack_client_t* res = jack_client_open_aux(ext_client_name, options, status, ap); 127 va_end(ap); 128 return res; 129 } 130 119 131 EXPORT int jack_client_close(jack_client_t* ext_client) 120 132 { jack2/trunk/jackmp/common/JackServerAPI.cpp
r1909 r1911 43 43 #endif 44 44 45 EXPORT jack_client_t * jack_client_open_aux (const char *client_name, 46 jack_options_t options, 47 jack_status_t *status, ...); 45 48 EXPORT jack_client_t * jack_client_open (const char *client_name, 46 49 jack_options_t options, … … 54 57 using namespace Jack; 55 58 56 EXPORT jack_client_t* jack_client_open (const char* ext_client_name, jack_options_t options, jack_status_t* status, ...)59 EXPORT jack_client_t* jack_client_open_aux(const char* ext_client_name, jack_options_t options, jack_status_t* status, ...) 57 60 { 58 61 va_list ap; /* variable argument pointer */ … … 82 85 JackLog("jack_client_open %s\n", client_name); 83 86 if (client_name == NULL) { 84 jack_error("jack_client_ newcalled with a NULL client_name");87 jack_error("jack_client_open called with a NULL client_name"); 85 88 return NULL; 86 89 } … … 114 117 } 115 118 119 EXPORT jack_client_t* jack_client_open(const char* ext_client_name, jack_options_t options, jack_status_t* status, ...) 120 { 121 va_list ap; 122 va_start(ap, status); 123 jack_client_t* res = jack_client_open_aux(ext_client_name, options, status, ap); 124 va_end(ap); 125 return res; 126 } 127 116 128 EXPORT int jack_client_close(jack_client_t* ext_client) 117 129 {
