28 lines
864 B
C
28 lines
864 B
C
#ifndef CARLA_HOST_H
|
|
#define CARLA_HOST_H
|
|
|
|
#include <stdbool.h>
|
|
#include <CarlaHost.h> /* CarlaHostHandle typedef */
|
|
|
|
/* All functions return -1 on error, 0 on success (except carla_load which returns 0 on success and sets *out_id) */
|
|
|
|
int carla_init_jack(void);
|
|
void carla_cleanup_jack(void);
|
|
|
|
int carla_load(const char *binary, const char *plugin_id, int *out_id);
|
|
int carla_unload(int id);
|
|
int carla_connect(int id, const char *port_name, const char *looper_port);
|
|
int carla_disconnect(const char *from, const char *to);
|
|
void carla_set_bypass(int id, bool bypass);
|
|
|
|
/* Get internal Carla host handle, may be NULL */
|
|
int carla_disconnect_plugin(int id);
|
|
CarlaHostHandle carla_get_handle(void);
|
|
|
|
#ifdef TESTING
|
|
int carla_test_connection_count(void);
|
|
int carla_test_add_connection(int plugin_id, const char *plugin_port, const char *looper_port);
|
|
#endif
|
|
|
|
#endif
|