]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink_internal.h
Don't allow meshlink_join() when the storage policy is DISABLED.
[meshlink] / src / meshlink_internal.h
index ca2df2c543cf055866d1bf0618617c5eabee920c..6cbe6093f42258f84ecb5b0c133b7d2018965ffa 100644 (file)
@@ -67,6 +67,7 @@ struct meshlink_open_params {
 
        const void *key;
        size_t keylen;
+       meshlink_storage_policy_t storage_policy;
 };
 
 /// Device class traits
@@ -142,6 +143,7 @@ struct meshlink_handle {
        meshlink_node_duplicate_cb_t node_duplicate_cb;
        meshlink_connection_try_cb_t connection_try_cb;
        meshlink_error_cb_t error_cb;
+       meshlink_blacklisted_cb_t blacklisted_cb;
 
        // Mesh parameters
        char *appname;
@@ -169,6 +171,7 @@ struct meshlink_handle {
        void *config_key;
        char *external_address_url;
        struct list_t *invitation_addresses;
+       meshlink_storage_policy_t storage_policy;
 
        // Thread management
        pthread_t thread;