]> git.meshlink.io Git - meshlink/blobdiff - src/utcp.h
Add meshlink_set_channel_flags().
[meshlink] / src / utcp.h
index 2c537014da503548ea0633527ec38b7750691f9b..9921a3755e252dce0bbceb25f986231f33e0d591 100644 (file)
@@ -53,6 +53,7 @@ struct utcp_connection;
 
 #define UTCP_TCP 3
 #define UTCP_UDP 0
+#define UTCP_CHANGEABLE_FLAGS 0x18U
 
 typedef bool (*utcp_listen_t)(struct utcp *utcp, uint16_t port);
 typedef void (*utcp_accept_t)(struct utcp_connection *utcp_connection, uint16_t port);
@@ -118,6 +119,8 @@ size_t utcp_get_outq(struct utcp_connection *connection);
 
 void utcp_expect_data(struct utcp_connection *connection, bool expect);
 
+void utcp_set_flags(struct utcp_connection *connection, uint32_t flags);
+
 // Completely global options
 
 void utcp_set_clock_granularity(long granularity);