static int test_conf_set(int argc, char **argv, char *val) { if (argc == 1) { if (!strcmp(argv[0], "8")) { return CONF_VALUE_SET(val, CONF_INT8, test8_shadow); } else if (!strcmp(argv[0], "str")) { return CONF_VALUE_SET(val, CONF_STRING, test_str); } } return OS_ENOENT; }
static int id_conf_set(int argc, char **argv, char *val) { if (argc == 1) { if (!strcmp(argv[0], "serial")) { return CONF_VALUE_SET(val, CONF_STRING, serial); } } return OS_ENOENT; }