]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/common/mesh_event_handler.c
Add blackbox test cases for submesh
[meshlink] / test / blackbox / common / mesh_event_handler.c
index 1b7ebe92aec61dd15eee952320313591d7b9f33c..bb5faf1c173c463698266cc7ba339dddd528a138 100644 (file)
 #define SERVER_LISTEN_PORT "9000" /* Port number that is binded with mesh event server socket */
 #define UDP_BUFF_MAX 2000
 
+const char *event_status[] = {
+       [NODE_STARTED]                          = "Node Started",
+       [NODE_JOINED]                           = "Node Joined",
+       [ERR_NETWORK]                           = "Network Error",
+       [CHANNEL_OPENED]                        = "Channel Opened",
+       [CHANNEL_DATA_RECIEVED]                         = "Channel Data Received",
+       [SIG_ABORT]                             = "SIG_ABORT Received",
+       [MESH_EVENT_COMPLETED]                          = "MESH_EVENT_COMPLETED Received"
+};
+
 // TODO: Implement mesh event handling with reentrancy .
 static struct sockaddr_in server_addr;
 static int client_fd = -1;
@@ -269,5 +279,4 @@ void mesh_event_destroy(void) {
        mesh_events_flush();
        event_receive_thread_running = false;
        pthread_cancel(event_receive_thread);
-}
-
+}
\ No newline at end of file