1#ifndef _ossia_API_NAMESPACE_
2#define _ossia_API_NAMESPACE_
5#include <ossia-c/preset/result.h>
7#if defined(__cplusplus)
12typedef ossia_preset* ossia_preset_t;
13typedef enum ossia_preset_result_enum ossia_preset_result;
23ossia_preset_result ossia_presets_read_json(
const char*, ossia_preset_t*);
37ossia_preset_result ossia_presets_free(ossia_preset_t);
48ossia_presets_write_json(
const ossia_preset_t,
const char* device,
const char**);
58ossia_preset_result ossia_presets_size(
const ossia_preset_t,
int*);
68ossia_preset_result ossia_presets_to_string(
const ossia_preset_t,
const char**);
74bool ossia_presets_has_key(
const ossia_preset_t,
const char* key);
81ossia_presets_key_to_string(
const ossia_preset_t,
const char* key,
const char** value);
88ossia_presets_key_to_value(
const ossia_preset_t,
const char* key, ossia_value_t* value);
100ossia_preset_result ossia_devices_write_json(
const ossia_device_t,
const char**);
112ossia_devices_apply_preset(ossia_device_t, ossia_preset_t,
bool keep_arch =
true);
121ossia_preset_result ossia_devices_make_preset(ossia_device_t, ossia_preset_t*);
131ossia_preset_result ossia_devices_to_string(ossia_device_t,
const char**);
144ossia_preset_result ossia_devices_get_node(ossia_device_t,
const char*, ossia_node_t*);
155ossia_preset_result ossia_devices_get_child(ossia_node_t,
const char*, ossia_node_t*);
166ossia_preset_result ossia_free_string(
const char*);
168#if defined(__cplusplus)