Lines Matching defs:config
27 #include "osi/include/config.h"
35 config_t *config = config_new(p_path);
36 if (!config) {
37 LOG_ERROR(LOG_TAG, "%s unable to load DID config '%s'.", __func__, p_path);
45 if (!config_has_section(config, section_name)) {
51 record.vendor = config_get_int(config, section_name, "vendorId", LMP_COMPID_BROADCOM);
52 record.vendor_id_source = config_get_int(config, section_name, "vendorIdSource", DI_VENDOR_ID_SOURCE_BTSIG);
53 record.product = config_get_int(config, section_name, "productId", 0);
54 record.version = config_get_int(config, section_name, "version", 0);
55 record.primary_record = config_get_bool(config, section_name, "primaryRecord", false);
56 strlcpy(record.client_executable_url, config_get_string(config, section_name, "clientExecutableURL", ""), sizeof(record.client_executable_url));
57 strlcpy(record.service_description, config_get_string(config, section_name, "serviceDescription", ""), sizeof(record.service_description));
58 strlcpy(record.documentation_url, config_get_string(config, section_name, "documentationURL", ""), sizeof(record.documentation_url));
82 config_free(config);