예제 #1
0
static void save_profile(const char *ini_fn)
{
	FILE *f = fopen(ini_fn, "a");
	if (f) {
		save_to_ini(f, THIS_DRIVER, dev, fmcomms2_sr_attribs,
				ARRAY_SIZE(fmcomms2_sr_attribs));
		save_to_ini(f, NULL, dds, fmcomms2_sr_attribs,
				ARRAY_SIZE(fmcomms2_sr_attribs));
		save_widgets_to_ini(f);
		fclose(f);
	}
}
예제 #2
0
static void save_profile(const char *ini_fn)
{
	FILE *f = fopen(ini_fn, "a");
	if (f) {
		/* Write the section header */
		save_to_ini(f, THIS_DRIVER, dac, daq_sr_attribs,
				sr_attribs_array_size);
		save_to_ini(f, NULL, adc, daq_sr_attribs,
				sr_attribs_array_size);
		save_widgets_to_ini(f);
		fclose(f);
	}
}
예제 #3
0
static void save_profile(const struct osc_plugin *plugin, const char *ini_fn)
{
	FILE *f = fopen(ini_fn, "a");
	if (f) {
		/* Write the section header */
		save_to_ini(f, THIS_DRIVER, dac, ad9739a_sr_attribs,
				ARRAY_SIZE(ad9739a_sr_attribs));
		save_widgets_to_ini(f);
		fclose(f);
	}
}