GNUnet  0.11.x
Functions | Variables
001.c File Reference
#include <gnunet/platform.h>
#include <gnunet/gnunet_util_lib.h>
Include dependency graph for 001.c:

Go to the source code of this file.


static void run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg)
int main (int argc, char *const *argv)


static int ret

Function Documentation

◆ run()

static void run ( void *  cls,
char *const *  args,
const char *  cfgfile,
const struct GNUNET_CONFIGURATION_Handle cfg 

Definition at line 7 of file 001.c.

References ret.

Referenced by main().

11 {
12  // main code here
13  ret = 0;
14 }
static int ret
Definition: 001.c:4
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *const *  argv 

Definition at line 17 of file 001.c.

References gettext_noop, GNUNET_GETOPT_OPTION_END, GNUNET_OK, GNUNET_PROGRAM_run(), ret, and run().

18 {
21  };
22  return (GNUNET_OK ==
23  GNUNET_PROGRAM_run (argc,
24  argv,
25  "binary-name",
26  gettext_noop ("binary description text"),
27  options, &run, NULL)) ? ret : 1;
28 }
enum GNUNET_GenericReturnValue GNUNET_PROGRAM_run(int argc, char *const *argv, const char *binaryName, const char *binaryHelp, const struct GNUNET_GETOPT_CommandLineOption *options, GNUNET_PROGRAM_Main task, void *task_cls)
Run a standard GNUnet command startup sequence (initialize loggers and configuration, parse options).
Definition: program.c:363
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
Definition of a command line option.
Definition: 002.c:13
static int ret
Definition: 001.c:4
static void run(void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg)
Definition: 001.c:7
#define gettext_noop(String)
Definition: gettext.h:69
Here is the call graph for this function:

Variable Documentation

◆ ret

int ret

Definition at line 4 of file 001.c.

Referenced by main(), and run().