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

Functions

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

Variables

static int ret
 

Function Documentation

◆ run()

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

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 }
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
#define GNUNET_OK
Named constants for return values.
Definition: gnunet_common.h:75
Definition of a command line option.
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_OPTION_END
Definition: 002.c:13
static int ret
Definition: 001.c:4
int 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:367
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
static

Definition at line 4 of file 001.c.

Referenced by main(), and run().