Buttplug sex toy control library

chore: Expose user definitions for intiface central

+7
+7
crates/buttplug_server_device_config/src/device_config_manager.rs
··· 139 139 user_communication_specifiers: DashMap<String, Vec<ProtocolCommunicationSpecifier>>, 140 140 /// Device definitions from the user device config. Loaded at session start, may change over life 141 141 /// of session. 142 + #[getset(get = "pub")] 142 143 user_device_definitions: DashMap<UserDeviceIdentifier, ServerDeviceDefinition>, 143 144 } 144 145 ··· 186 187 .cloned() 187 188 .collect(); 188 189 } 190 + } 191 + 192 + pub fn add_user_device_definition(&self, identifier: &UserDeviceIdentifier, definition: &ServerDeviceDefinition) { 193 + // TODO we should actually check validity of the definition we're adding here, i.e. does it have 194 + // a base id, is that ID in our base selections, etc... 195 + self.user_device_definitions.insert(identifier.clone(), definition.clone()); 189 196 } 190 197 191 198 pub fn remove_user_device_definition(&self, identifier: &UserDeviceIdentifier) {