#include <stdbool.h>
#include <stddef.h>
+#include "event.h"
#ifdef __cplusplus
extern "C" {
MESHLINK_ENOMEM, // Out of memory
MESHLINK_ENOENT, // Node is not known
} meshlink_errno_t;
+typedef struct outpacketqueue {
+ meshlink_node_t *destination;
+ const void *data;
+ unsigned int len;
+} outpacketqueue_t;
#ifndef MESHLINK_INTERNAL_H
*/
extern bool meshlink_send(meshlink_handle_t *mesh, meshlink_node_t *destination, const void *data, unsigned int len);
+extern void 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.
*