Lines Matching refs:settingsTemplate
72 const driver_settings& settings, const settings_template* settingsTemplate, in ConvertFromDriverSettings() argument
79 settingsTemplate, message); in ConvertFromDriverSettings()
94 const settings_template* settingsTemplate, BMessage& message) in ConvertFromDriverSettings() argument
103 status = ConvertFromDriverSettings(*settings, settingsTemplate, in ConvertFromDriverSettings()
115 const settings_template* settingsTemplate, BString& settings, in ConvertToDriverSettings() argument
124 status_t result = _AppendSettings(settingsTemplate, settings, message, in ConvertToDriverSettings()
136 const settings_template* settingsTemplate, const BMessage& message) in ConvertToDriverSettings() argument
139 status_t status = ConvertToDriverSettings(settingsTemplate, settings, in ConvertToDriverSettings()
160 const settings_template* settingsTemplate, const char* name) in _FindSettingsTemplate() argument
164 while (settingsTemplate->type != 0) { in _FindSettingsTemplate()
165 if (settingsTemplate->name != NULL in _FindSettingsTemplate()
166 && !strcmp(name, settingsTemplate->name)) in _FindSettingsTemplate()
167 return settingsTemplate; in _FindSettingsTemplate()
169 if (settingsTemplate->name == NULL) in _FindSettingsTemplate()
170 wildcardTemplate = settingsTemplate; in _FindSettingsTemplate()
171 settingsTemplate++; in _FindSettingsTemplate()
180 const settings_template* settingsTemplate) in _FindParentValueTemplate() argument
182 settingsTemplate = settingsTemplate->sub_template; in _FindParentValueTemplate()
183 if (settingsTemplate == NULL) in _FindParentValueTemplate()
186 while (settingsTemplate->type != 0) { in _FindParentValueTemplate()
187 if (settingsTemplate->parent_value) in _FindParentValueTemplate()
188 return settingsTemplate; in _FindParentValueTemplate()
190 settingsTemplate++; in _FindParentValueTemplate()
199 const settings_template& settingsTemplate, BMessage& message) in _AddParameter() argument
201 const char* name = settingsTemplate.name; in _AddParameter()
206 if (settingsTemplate.converter != NULL) { in _AddParameter()
208 = settingsTemplate.converter->ConvertFromDriverSettings( in _AddParameter()
209 parameter, name, i, settingsTemplate.type, message); in _AddParameter()
218 switch (settingsTemplate.type) { in _AddParameter()
247 if (settingsTemplate.converter != NULL) { in _AddParameter()
249 = settingsTemplate.converter->ConvertEmptyFromDriverSettings( in _AddParameter()
250 parameter, name, settingsTemplate.type, message); in _AddParameter()
253 } else if (settingsTemplate.type == B_BOOL_TYPE) { in _AddParameter()
266 const settings_template* settingsTemplate, BMessage& message) in _ConvertFromDriverParameter() argument
268 settingsTemplate = _FindSettingsTemplate(settingsTemplate, parameter.name); in _ConvertFromDriverParameter()
269 if (settingsTemplate == NULL) { in _ConvertFromDriverParameter()
275 status_t status = _AddParameter(parameter, *settingsTemplate, message); in _ConvertFromDriverParameter()
279 if (settingsTemplate->type == B_MESSAGE_TYPE) { in _ConvertFromDriverParameter()
283 settingsTemplate->sub_template, subMessage); in _ConvertFromDriverParameter()
289 = _FindParentValueTemplate(settingsTemplate); in _ConvertFromDriverParameter()
302 const settings_template* settingsTemplate, BString& settings, in _AppendSettings() argument
307 = _FindSettingsTemplate(settingsTemplate, name); in _AppendSettings()