Crudebyte Logo
custom.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013 Crudebyte, http://www.crudebyte.com
3 
4  Permission to use, copy, modify, and/or distribute this software for any
5  purpose with or without fee is hereby granted, provided that the above
6  copyright notice and this permission notice appear in all copies.
7 
8  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14  PERFORMANCE OF THIS SOFTWARE.
15 */
16 
17 #ifndef _JACK_CUSTOM_H
18 #define _JACK_CUSTOM_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include <jack/weakmacros.h>
25 #include <jack/types.h>
26 #include <stdlib.h>
27 
62 typedef void (*JackCustomDataAppearanceCallback)(const char* client_name,
63  const char* key,
64  jack_custom_change_t change,
65  void* arg);
66 
88 int jack_custom_publish_data (jack_client_t* client, const char* key,
89  const void* data, size_t size) JACK_OPTIONAL_WEAK_EXPORT;
90 
113 int jack_custom_get_data (jack_client_t* client, const char* client_name,
114  const char* key, void** data, size_t* size) JACK_OPTIONAL_WEAK_EXPORT;
115 
131 const char** jack_custom_get_keys (jack_client_t* client,
132  const char* client_name) JACK_OPTIONAL_WEAK_EXPORT;
133 
142 int jack_custom_unpublish_data (jack_client_t* client, const char* key)
143  JACK_OPTIONAL_WEAK_EXPORT;
144 
167  void* arg
168  ) JACK_OPTIONAL_WEAK_EXPORT;
169 
172 #ifdef __cplusplus
173 }
174 #endif
175 
176 #endif /* _JACK_CUSTOM_H */
DE • EN
Copyright © MMXIII Crudebyte. All rights reserved.

twitter