Lines Matching defs:key
828 struct spdk_json_val *values, *key, *val, *key2, *val2;
841 key = val = NULL;
842 rc = spdk_json_find(values, "string", &key, &val, SPDK_JSON_VAL_STRING);
845 CU_ASSERT(key != NULL && spdk_json_strequal(key, "string") == true);
848 key = val = NULL;
849 rc = spdk_json_find(values, "object", &key, &val, SPDK_JSON_VAL_OBJECT_BEGIN);
852 CU_ASSERT(key != NULL && spdk_json_strequal(key, "object") == true);
854 /* Find key in "object" by passing SPDK_JSON_VAL_ANY to match any type */
861 /* Find the "array" key in "object" by passing SPDK_JSON_VAL_ARRAY_BEGIN to match only array */
868 /* Negative test - key doesn't exist */
873 /* Negative test - key type doesn't match */
885 struct spdk_json_val *values, *key;
902 key = NULL;
903 rc = spdk_json_find(values, "Text", &key, NULL, SPDK_JSON_VAL_STRING);