]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.h
Fix compiler warning
[meshlink] / src / meshlink.h
index 96dcdf244aef9192234ff58b61b04fd4504ae089..0ef56e2263c867705f2eb33bdb5b7563ac8a67f8 100644 (file)
@@ -23,6 +23,8 @@
 #include <stdbool.h>
 #include <stddef.h>
 
+#include "system.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -35,6 +37,18 @@ typedef struct meshlink_node meshlink_node_t;
 
 typedef struct meshlink_connection meshlink_connection_t;
 
+//Structure to hold a single bit
+
+typedef struct {
+unsigned int bit : 1;
+} Bit;
+
+//BitArray structure.
+
+typedef struct {
+Bit bitValues[1024]; //we will be able to use MAX 1024 sockets
+} bitmap_t;
+
 /// Code of most recent error encountered.
 typedef enum {
        MESHLINK_OK,     ///< Everything is fine