GNUnet  0.17.6
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.

11 {
12  // main code here
13  ret = 0;
14 }
static int ret
Definition: 001.c:4

References ret.

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *const *  argv 

Definition at line 17 of file 001.c.

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 }
static void run(void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg)
Definition: 001.c:7
Definition: 002.c:13
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
#define gettext_noop(String)
Definition: gettext.h:69
Definition: gnunet_common.h:99
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,...
Definition: program.c:399
Definition of a command line option.

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

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().