]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.h
Typedef of bitmap
[meshlink] / src / meshlink.h
index 917d4548efc13c6f89954ffc36295ca4de83b03c..0ef56e2263c867705f2eb33bdb5b7563ac8a67f8 100644 (file)
@@ -37,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