Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 208586bb5002d462fc81d713e794f31c > files > 31

dotconf-devel-1.3-2.fc14.x86_64.rpm

#include <stdio.h>
#include <dotconf.h>

static DOTCONF_CB(cb_newoption)
{
	printf("[SECOND_MODULE] Line %ld: Option=%s int=%ld\n",
	       cmd->configfile->line, cmd->name, cmd->data.value);
	return NULL;
}

/* It's important to NOT make this const. That makes duplicate.c SEGV */
configoption_t options[] = {
	{"DupOption", ARG_INT, cb_newoption, 0, 0}
	,
	LAST_OPTION
};