]> git.meshlink.io Git - meshlink/blobdiff - src/utcp.c
Add meshlink_set_channel_flags().
[meshlink] / src / utcp.c
index 20dd0aba049757ca30833779ec772c63ba685310..f237270f85c7173610c84b447ea314f617fd79dd 100644 (file)
@@ -2428,6 +2428,11 @@ void utcp_expect_data(struct utcp_connection *c, bool expect) {
        }
 }
 
+void utcp_set_flags(struct utcp_connection *c, uint32_t flags) {
+       c->flags &= ~UTCP_CHANGEABLE_FLAGS;
+       c->flags |= flags & UTCP_CHANGEABLE_FLAGS;
+}
+
 void utcp_offline(struct utcp *utcp, bool offline) {
        struct timespec now;
        clock_gettime(UTCP_CLOCK, &now);