Lines Matching defs:obj

49 report_config_error(const char *key, const ucl_object_t *obj, const char *type)
53 ucl_object_tostring(obj), key, type);
61 add_bool_config(const char *key, const ucl_object_t *obj, nvlist_t *config)
65 if (!ucl_object_toboolean_safe(obj, &val))
66 report_config_error(key, obj, "bool");
76 add_string_config(const char *key, const ucl_object_t *obj, nvlist_t *config)
80 if (!ucl_object_tostring_safe(obj, &val))
81 report_config_error(key, obj, "string");
91 add_uint_config(const char *key, const ucl_object_t *obj, nvlist_t *config,
98 if (!ucl_object_toint_safe(obj, &val))
99 report_config_error(key, obj, type);
102 report_config_error(key, obj, type);
106 report_config_error(key, obj, type);
116 add_unicast_mac_config(const char *key, const ucl_object_t *obj, nvlist_t *config)
125 if (!ucl_object_tostring_safe(obj, &val))
126 report_config_error(key, obj, "unicast-mac");
137 report_config_error(key, obj, "unicast-mac");
142 report_config_error(key, obj, "unicast-mac");
145 report_config_error(key, obj, "unicast-mac");
148 report_config_error(key, obj, "unicast-mac");
157 report_config_error(key, obj, "unicast-mac");
161 ucl_object_tostring(obj), key);
171 add_config(const char *key, const ucl_object_t *obj, nvlist_t *config,
179 add_bool_config(key, obj, config);
181 add_string_config(key, obj, config);
183 add_uint_config(key, obj, config, type, UINT8_MAX);
185 add_uint_config(key, obj, config, type, UINT16_MAX);
187 add_uint_config(key, obj, config, type, UINT32_MAX);
189 add_uint_config(key, obj, config, type, UINT64_MAX);
191 add_unicast_mac_config(key, obj, config);
206 const ucl_object_t *obj;
231 while ((obj = ucl_iterate_object(top, &it, true)) != NULL) {
232 key = ucl_object_key(obj);
235 add_config(key, obj, iov_config,
238 add_config(key, obj, driver_config,
261 const ucl_object_t *obj;
294 while ((obj = ucl_iterate_object(top, &it, true)) != NULL) {
295 key = ucl_object_key(obj);
298 parse_device_config(obj, config, key, pf_schema);
315 parse_device_config(obj, config, key, vf_schema);
318 parse_device_config(obj, config, key, vf_schema);
340 const ucl_object_t *obj;
344 while ((obj = ucl_iterate_object(pf, &it, true)) != NULL) {
345 key = ucl_object_key(obj);
348 if (!ucl_object_tostring_safe(obj, &device))
376 const ucl_object_t *obj;
396 while ((obj = ucl_iterate_object(top, &it, true)) != NULL) {
397 key = ucl_object_key(obj);
400 deviceName = find_pf_device(obj);