JackUtils 0.5
Provides simplified Jack API for clients :)
Loading...
Searching...
No Matches
ju_osc.h
Go to the documentation of this file.
1/* OSC Session Manager Extension for jackutils library.
2 * Copyright (C) UtoECat 2022. All rights Reserved!
3
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
41JU_API int (ju_need_gui) (ju_ctx_t* x);
42
52JU_API void (ju_set_gui) (ju_ctx_t* x, int b);
53
61JU_API ju_cstr_t (ju_osc_info) (ju_ctx_t* ctx);
62
90JU_API ju_cstr_t (ju_osc_path) (ju_ctx_t* ctx);
91
96JU_API void (ju_pool_events) (ju_ctx_t* ctx);
97
108typedef int (*ju_save_cb) (ju_ctx_t* ctx, void* ud);
109
117JU_API void (ju_onsave) (ju_ctx_t* ctx, ju_save_cb cb, void* ud);
118
const char * ju_cstr_t
Informative type definition.
Definition: jackutils.h:64
JU_API void() ju_pool_events(ju_ctx_t *ctx)
Call this in main loop to recieve and process messages from session manager.
Definition: jackutilsosc.c:147
JU_API void() ju_set_gui(ju_ctx_t *x, int b)
Set ju_need_gui returned value and send it to session manager.
Definition: jackutilsosc.c:120
JU_API void() ju_onsave(ju_ctx_t *ctx, ju_save_cb cb, void *ud)
Sets custom on_save callback.
Definition: jackutilsosc.c:153
int(* ju_save_cb)(ju_ctx_t *ctx, void *ud)
Save callback, that called each time when user sends save command from session manager,...
Definition: ju_osc.h:108
JU_API ju_cstr_t() ju_osc_path(ju_ctx_t *ctx)
Returns OSC path to store your session data.
Definition: jackutilsosc.c:143
JU_API int() ju_need_gui(ju_ctx_t *x)
Returns is GUI enabled for us.
Definition: jackutilsosc.c:112
JU_API ju_cstr_t() ju_osc_info(ju_ctx_t *ctx)
Returns information about session manager, if available.
Definition: jackutilsosc.c:139
Internal JackUtils context structure.
Definition: ju_bits_ctx.h:39