X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Fcommon%2Fmesh_event_handler.h;h=609b1cf0c9d460e312c1e6a7011573487f19497a;hb=feebc141462741d5d0270245d7e97624ddd0bdf8;hp=7e497a35682762b30a072c10016a07ee4f8cdd91;hpb=1c04402a6d2f3a85d0cb4a5b4a6db5b1f3a79511;p=meshlink diff --git a/test/blackbox/common/mesh_event_handler.h b/test/blackbox/common/mesh_event_handler.h index 7e497a35..609b1cf0 100644 --- a/test/blackbox/common/mesh_event_handler.h +++ b/test/blackbox/common/mesh_event_handler.h @@ -72,10 +72,12 @@ typedef enum { INCOMING_META_CONN, OUTGOING_META_CONN, AUTO_DISCONN, - + MESH_EVENT_COMPLETED, MAX_EVENT // Maximum event enum } mesh_event_t; +extern const char *event_status[]; + /// mesh event UDP packet typedef struct mesh_event_payload { void *payload; @@ -116,7 +118,7 @@ extern char *mesh_event_sock_create(const char *ifname); * @param callback callback which handles the mesh event packet. * @param timeout timeout for which the the function has to wait for the event. * - * @return This function returns true if a mesh event occured else false if timeout exceeded. + * @return This function returns true if a mesh event occurred else false if timeout exceeded. */ extern bool wait_for_event(mesh_event_callback_t callback, int timeout); @@ -129,7 +131,7 @@ extern bool wait_for_event(mesh_event_callback_t callback, int timeout); * @param payload Payload can also be attached along with the mesh event if any, else NULL can * can be specified. * @param payload_length Length of the payload if specified else 0 can be specified. - * the maximum payload size can be upto PAYLOAD_MAX_SIZE and if the + * the maximum payload size can be up to PAYLOAD_MAX_SIZE and if the * PAYLOAD_MAX_SIZE macro is changed it should not exceed the UDP datagram size. * * @return This function returns true on success else returns false.