File: first_module.c

package info (click to toggle)
dotconf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 488 kB
  • sloc: ansic: 2,265; makefile: 186; sh: 39
file content (15 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <dotconf.h>

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

configoption_t options[] = {
	{"DupOption", ARG_STR, cb_newoption, 0, 0}
	,
	LAST_OPTION
};