//notify event loop
signal_trigger(&(mesh->loop),&(mesh->datafromapp));
+ return true;
}
-bool meshlink_send_from_queue(meshlink_handle_t *mesh) {
+bool meshlink_send_from_queue(event_loop_t* el,meshlink_handle_t *mesh) {
vpn_packet_t packet;
meshlink_packethdr_t *hdr = (meshlink_packethdr_t *)packet.data;
#include <stdbool.h>
#include <stddef.h>
+#include "event.h"
#ifdef __cplusplus
extern "C" {
*/
extern bool meshlink_send(meshlink_handle_t *mesh, meshlink_node_t *destination, const void *data, unsigned int len);
-extern bool meshlink_send_from_queue (meshlink_handle_t *mesh);
+extern bool meshlink_send_from_queue(event_loop_t* el,meshlink_handle_t *mesh);
/// Get a handle for a specific node.
/** This function returns a handle for the node with the given name.