FOSSology  4.4.0
Open Source License Compliance by Open Source Software
before_connect.c
Go to the documentation of this file.
1 /*
2  SPDX-FileCopyrightText: © 2012 Hewlett-Packard Development Company, L.P.
3 
4  SPDX-License-Identifier: GPL-2.0-only
5 */
6 
7 /* fossology includes */
8 #include <libfossology.h>
9 
24 int main(int argc, char** argv)
25 {
26  printf("before connect");
27 
28  fo_scheduler_connect(&argc, argv, NULL);
29  if(fo_scheduler_next() == NULL)
31  else
33 
34  return 0;
35 
36 }
37 
38 
The main FOSSology C library.
void fo_scheduler_disconnect(int retcode)
Disconnect the scheduler connection.
char * fo_scheduler_next()
Get the next data to process from the scheduler.
void fo_scheduler_connect(int *argc, char **argv, PGconn **db_conn)
Establish a connection between an agent and the scheduler.