Lines Matching defs:obj
58 uclparse_chap(struct auth_group *auth_group, const ucl_object_t *obj)
64 user = ucl_object_find_key(obj, "user");
71 secret = ucl_object_find_key(obj, "secret");
88 uclparse_chap_mutual(struct auth_group *auth_group, const ucl_object_t *obj)
95 user = ucl_object_find_key(obj, "user");
102 secret = ucl_object_find_key(obj, "secret");
109 mutual_user = ucl_object_find_key(obj, "mutual-user");
116 mutual_secret = ucl_object_find_key(obj, "mutual-secret");
136 uclparse_target_portal_group(struct target *target, const ucl_object_t *obj)
143 portal_group = ucl_object_find_key(obj, "name");
150 auth_group = ucl_object_find_key(obj, "auth-group-name");
187 uclparse_target_lun(struct target *target, const ucl_object_t *obj)
192 if (obj->type == UCL_INT) {
195 tmp = ucl_object_toint(obj);
212 if (obj->type == UCL_OBJECT) {
213 const ucl_object_t *num = ucl_object_find_key(obj, "number");
214 const ucl_object_t *name = ucl_object_find_key(obj, "name");
248 const ucl_object_t *obj = NULL, *child = NULL;
252 while ((obj = ucl_iterate_object(top, &it, true))) {
253 const char *key = ucl_object_key(obj);
256 if (obj->type == UCL_INT)
257 conf->conf_debug = ucl_object_toint(obj);
265 if (obj->type == UCL_INT)
266 conf->conf_timeout = ucl_object_toint(obj);
274 if (obj->type == UCL_INT)
275 conf->conf_maxproc = ucl_object_toint(obj);
283 if (obj->type == UCL_STRING)
285 ucl_object_tostring(obj));
293 if (obj->type == UCL_ARRAY) {
295 while ((child = ucl_iterate_object(obj, &iter,
314 if (obj->type == UCL_INT)
315 conf->conf_timeout = ucl_object_toint(obj);
323 if (obj->type == UCL_INT)
324 conf->conf_timeout = ucl_object_toint(obj);
332 if (obj->type == UCL_OBJECT) {
334 while ((child = ucl_iterate_object(obj, &iter, true))) {
344 if (obj->type == UCL_OBJECT) {
346 while ((child = ucl_iterate_object(obj, &iter, true))) {
356 if (obj->type == UCL_OBJECT) {
358 while ((child = ucl_iterate_object(obj, &iter, true))) {
370 while ((obj = ucl_iterate_object(top, &it, true))) {
371 const char *key = ucl_object_key(obj);
374 if (obj->type == UCL_OBJECT) {
376 while ((child = ucl_iterate_object(obj, &iter,
398 const ucl_object_t *obj = NULL, *tmp = NULL;
413 while ((obj = ucl_iterate_object(top, &it, true))) {
414 key = ucl_object_key(obj);
417 const char *value = ucl_object_tostring(obj);
425 if (obj->type != UCL_ARRAY) {
433 while ((tmp = ucl_iterate_object(obj, &it2, true))) {
440 if (obj->type != UCL_ARRAY) {
448 while ((tmp = ucl_iterate_object(obj, &it2, true))) {
455 if (obj->type != UCL_ARRAY) {
463 while ((tmp = ucl_iterate_object(obj, &it2, true))) {
473 if (obj->type != UCL_ARRAY) {
481 while ((tmp = ucl_iterate_object(obj, &it2, true))) {
499 const ucl_object_t *obj = NULL, *tmp = NULL;
513 while ((obj = ucl_iterate_object(top, &it, true))) {
514 key = ucl_object_key(obj);
518 auth_group_find(conf, ucl_object_tostring(obj));
522 ucl_object_tostring(obj),
529 if (obj->type != UCL_STRING) {
537 ucl_object_tostring(obj)) != 0)
542 if (obj->type == UCL_STRING) {
544 ucl_object_tostring(obj), false) != 0)
546 } else if (obj->type == UCL_ARRAY) {
547 while ((tmp = ucl_iterate_object(obj, &it2,
564 if (obj->type == UCL_STRING) {
566 ucl_object_tostring(obj), true) != 0)
568 } else if (obj->type == UCL_ARRAY) {
569 while ((tmp = ucl_iterate_object(obj, &it2,
586 if (obj->type != UCL_STRING) {
594 ucl_object_tostring(obj)) != 0)
599 if (obj->type != UCL_OBJECT) {
605 while ((tmp = ucl_iterate_object(obj, &it2,
614 if ((obj->type != UCL_STRING) && (obj->type != UCL_INT)) {
619 if (obj->type == UCL_INT)
620 portal_group->pg_dscp = ucl_object_toint(obj);
622 key = ucl_object_tostring(obj);
677 if (obj->type != UCL_INT) {
682 portal_group->pg_pcp = ucl_object_toint(obj);
698 const ucl_object_t *obj = NULL, *tmp = NULL;
705 while ((obj = ucl_iterate_object(top, &it, true))) {
706 key = ucl_object_key(obj);
709 if (obj->type != UCL_STRING) {
715 target->t_alias = strdup(ucl_object_tostring(obj));
732 ag = ucl_object_tostring(obj);
740 "\"%s\"", ucl_object_tostring(obj),
764 ucl_object_tostring(obj));
784 if (!uclparse_chap(target->t_auth_group, obj))
789 if (!uclparse_chap_mutual(target->t_auth_group, obj))
811 ucl_object_tostring(obj));
834 ucl_object_tostring(obj));
840 if (obj->type == UCL_OBJECT) {
841 if (!uclparse_target_portal_group(target, obj))
845 if (obj->type == UCL_ARRAY) {
846 while ((tmp = ucl_iterate_object(obj, &it2,
858 value = ucl_object_tostring(obj);
863 if (obj->type != UCL_STRING) {
870 ucl_object_tostring(obj)) != 0)
875 while ((tmp = ucl_iterate_object(obj, &it2, true))) {
890 const ucl_object_t *obj = NULL, *child = NULL;
897 while ((obj = ucl_iterate_object(top, &it, true))) {
898 key = ucl_object_key(obj);
901 if (obj->type != UCL_STRING) {
908 lun_set_backend(lun, ucl_object_tostring(obj));
912 if (obj->type != UCL_INT) {
918 lun_set_blocksize(lun, ucl_object_toint(obj));
922 if (obj->type != UCL_STRING) {
928 lun_set_device_id(lun, ucl_object_tostring(obj));
932 if (obj->type != UCL_OBJECT) {
938 while ((child = ucl_iterate_object(obj, &child_it,
947 if (obj->type != UCL_STRING) {
953 lun_set_path(lun, ucl_object_tostring(obj));
957 if (obj->type != UCL_STRING) {
963 lun_set_serial(lun, ucl_object_tostring(obj));
967 if (obj->type != UCL_INT) {
973 lun_set_size(lun, ucl_object_toint(obj));