OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
preset.h
1#ifndef _ossia_API_NAMESPACE_
2#define _ossia_API_NAMESPACE_
3
4#include <ossia-c/ossia-c.h>
5#include <ossia-c/preset/result.h>
6
7#if defined(__cplusplus)
8extern "C" {
9#endif
10
11struct ossia_preset;
12typedef ossia_preset* ossia_preset_t;
13typedef enum ossia_preset_result_enum ossia_preset_result;
14
16
22OSSIA_EXPORT
23ossia_preset_result ossia_presets_read_json(const char*, ossia_preset_t*);
24
36OSSIA_EXPORT
37ossia_preset_result ossia_presets_free(ossia_preset_t);
38
46OSSIA_EXPORT
47ossia_preset_result
48ossia_presets_write_json(const ossia_preset_t, const char* device, const char**);
49
57OSSIA_EXPORT
58ossia_preset_result ossia_presets_size(const ossia_preset_t, int*);
59
67OSSIA_EXPORT
68ossia_preset_result ossia_presets_to_string(const ossia_preset_t, const char**);
69
73OSSIA_EXPORT
74bool ossia_presets_has_key(const ossia_preset_t, const char* key);
75
79OSSIA_EXPORT
80ossia_preset_result
81ossia_presets_key_to_string(const ossia_preset_t, const char* key, const char** value);
82
86OSSIA_EXPORT
87ossia_preset_result
88ossia_presets_key_to_value(const ossia_preset_t, const char* key, ossia_value_t* value);
89
91
99OSSIA_EXPORT
100ossia_preset_result ossia_devices_write_json(const ossia_device_t, const char**);
101
110OSSIA_EXPORT
111ossia_preset_result
112ossia_devices_apply_preset(ossia_device_t, ossia_preset_t, bool keep_arch = true);
113
120OSSIA_EXPORT
121ossia_preset_result ossia_devices_make_preset(ossia_device_t, ossia_preset_t*);
122
130OSSIA_EXPORT
131ossia_preset_result ossia_devices_to_string(ossia_device_t, const char**);
132
134
143OSSIA_EXPORT
144ossia_preset_result ossia_devices_get_node(ossia_device_t, const char*, ossia_node_t*);
145
154OSSIA_EXPORT
155ossia_preset_result ossia_devices_get_child(ossia_node_t, const char*, ossia_node_t*);
156
165OSSIA_EXPORT
166ossia_preset_result ossia_free_string(const char*);
167
168#if defined(__cplusplus)
169}
170#endif
171
172#endif