1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-23 00:00:01 +01:00
VILLASnode/go/lib/bridge.c

22 lines
638 B
C
Raw Normal View History

2022-03-14 16:34:12 -04:00
/** Bridge code for call C-function pointers from Go code
*
* @author Steffen Vogel <post@steffenvogel.de>
2022-03-14 16:34:12 -04:00
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
2022-07-04 18:20:03 +02:00
* @license Apache 2.0
2022-03-14 16:34:12 -04:00
*********************************************************************************/
2022-03-14 15:32:20 -04:00
#include <stdlib.h>
#include <villas/nodes/go.h>
void bridge_go_register_node_factory(_go_register_node_factory_cb cb, _go_plugin_list pl, char *name, char *desc, int flags)
{
cb(pl, name, desc, flags);
}
void bridge_go_logger_log(_go_logger_log_cb cb, _go_logger l, int level, char *msg)
{
cb(l, level, msg);
free(msg);
}