58 printf(
"Usage: %s [options] [id [id ...]]\n",Name);
59 printf(
" -i :: initialize the database, then exit.\n");
60 printf(
" -c SYSCONFDIR :: FOSSology configuration directory.\n");
61 printf(
" -h :: show available command line options.\n");
62 printf(
" -v :: increase agent logging verbosity.\n");
66 int main (
int argc,
char *argv[])
72 char agent_rev[myBUFSIZ];
82 sprintf(agent_rev,
"%s.%s", VERSION, COMMIT_HASH);
84 fprintf(stdout,
"regexscan reports version info as '%s.%s'.\n", VERSION, COMMIT_HASH);
87 while((c = getopt(argc,argv,
"civ")) != -1)
void fo_scheduler_disconnect(int retcode)
Disconnect the scheduler connection.
void fo_scheduler_connect(int *argc, char **argv, PGconn **db_conn)
Establish a connection between an agent and the scheduler.
int agent_verbose
Common verbose flags for the agents, this is used so that the scheduler can change the verbose level ...
void Usage(char *Name)
Say how to run this program.
The main FOSSology C library.
PGconn * pgConn
Database connection.
char * fo_sysconfig(const char *sectionname, const char *variablename)
gets a system configuration variable from the configuration data.