Esempio n. 1
0
static attr_value_t get_ls_html_file_attribute(
	void *arg, conf_object_t *obj, attr_value_t *idx)
{
	struct ls_state *ls = (struct ls_state *)obj;
	const char *path = ls->html_file != NULL ? ls->html_file : "/dev/null";
	return SIM_make_attr_string(path);
}
Esempio n. 2
0
static attr_value_t get_ls_quicksand_pps_attribute(
	void *arg, conf_object_t *obj, attr_value_t *idx)
{
	return SIM_make_attr_string("/dev/null");
}
Esempio n. 3
0
static attr_value_t get_ls_test_case_attribute(
	void *arg, conf_object_t *obj, attr_value_t *idx)
{
	const char *path = ((struct ls_state *)obj)->test.current_test;
	return SIM_make_attr_string(path);
}
Esempio n. 4
0
static attr_value_t
get_filename(void *arg, conf_object_t *obj, attr_value_t *idx)
{
        byte_dump_device_t *bdd = (byte_dump_device_t *)obj;
        return SIM_make_attr_string(bdd->filename);
}