#include "lo/lo.h"
Functions | |
int | set_value_from_osc (char type, lo_arg *arg, ntg_value *value) |
void | send_loaded (const char *module_name, int instance_count, long module_id) |
int | handler_module_load (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_namespace_method (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_module_remove (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_module_connect (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_module_disconnect (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | ntg_server_add_standard_methods (lo_server_thread server, ntg_bridge_interface *p) |
int | handler_send_value (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_send_process (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_module_post (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_module_info (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_module_nodelist (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
int | handler_module_register (const char *path, const char *types, lo_arg **argv, int argc, void *data, void *user_data) |
void | osc_error (int num, const char *msg, const char *path) |
int handler_module_connect | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References ntg_bridge_interface::module_connect, ntg_port_::module_id, and NTG_NO_ERROR.
Referenced by ntg_server_add_standard_methods().
int handler_module_disconnect | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References ntg_bridge_interface::module_disconnect, ntg_port_::module_id, and NTG_NO_ERROR.
Referenced by ntg_server_add_standard_methods().
int handler_module_info | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References server.
Referenced by ntg_server_add_standard_methods().
int handler_module_load | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
int handler_module_nodelist | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References ntg_address_list_::addresses, DB_SERVER, DEBUG_POST(), ntg_address_list_::n_addresses, ntg_free(), ntg_get_namespace(), ntg_lower(), ntg_malloc(), and server.
Referenced by ntg_server_add_standard_methods().
int handler_module_post | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References ntg_bridge_interface::post.
Referenced by ntg_server_add_standard_methods().
int handler_module_register | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References DB_SERVER, DEBUG_POST(), ntg_client_::ip, ntg_malloc(), ntg_print_error(), ntg_realloc(), ntg_client_::port, and server.
Referenced by ntg_server_add_standard_methods().
int handler_module_remove | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References ntg_bridge_interface::module_remove.
Referenced by ntg_server_add_standard_methods().
int handler_namespace_method | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References ntg_address_resolve(), ntg_malloc(), ntg_bridge_interface::send_value, and set_value_from_osc().
Referenced by ntg_server_add_standard_methods().
int handler_send_process | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References ntg_value_::ctype, DB_SERVER, DEBUG_POST(), ntg_value_::ctype_::f, ntg_port_::module_id, NTG_FLOAT, ntg_free(), ntg_malloc(), ntg_bridge_interface::send_value, and ntg_value_::type.
Referenced by ntg_server_add_standard_methods().
int handler_send_value | ( | const char * | path, | |
const char * | types, | |||
lo_arg ** | argv, | |||
int | argc, | |||
void * | data, | |||
void * | user_data | |||
) |
References ntg_port_::module_id, NTG_ERROR, ntg_free(), ntg_malloc(), ntg_print_error(), ntg_bridge_interface::send_value, and set_value_from_osc().
Referenced by ntg_server_add_standard_methods().
int ntg_server_add_standard_methods | ( | lo_server_thread | server, | |
ntg_bridge_interface * | p | |||
) |
References handler_module_connect(), handler_module_disconnect(), handler_module_info(), handler_module_load(), handler_module_nodelist(), handler_module_post(), handler_module_register(), handler_module_remove(), handler_namespace_method(), handler_send_process(), handler_send_value(), and NTG_NO_ERROR.
void osc_error | ( | int | num, | |
const char * | msg, | |||
const char * | path | |||
) |
References ntg_print_error().
void send_loaded | ( | const char * | module_name, | |
int | instance_count, | |||
long | module_id | |||
) |
This function sends the /loaded message back to any registered clients
References ntg_count_digits(), ntg_malloc(), and server.
Referenced by handler_module_load().
int set_value_from_osc | ( | char | type, | |
lo_arg * | arg, | |||
ntg_value * | value | |||
) |
References ntg_value_::ctype, ntg_value_::ctype_::f, ntg_value_::ctype_::i, NTG_FLOAT, ntg_post(), NTG_STRING, ntg_value_::ctype_::s, and ntg_value_::type.
Referenced by handler_namespace_method(), and handler_send_value().