![]() |
GNUnet
0.11.x
|
special file-sharing functions More...
Go to the source code of this file.
Functions | |
static int | print_indexed (void *cls, const char *filename, const struct GNUNET_HashCode *file_id) |
Print indexed filenames to stdout. More... | |
static void | run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Main function that will be run by the scheduler. More... | |
int | main (int argc, char *const *argv) |
The main function to access special file-sharing functions. More... | |
Variables | |
static int | ret |
Return value. More... | |
static struct GNUNET_FS_Handle * | fs |
Handle to FS service. More... | |
static int | list_indexed_files |
Option -i given? More... | |
static unsigned int | verbose |
Option -v given? More... | |
special file-sharing functions
Definition in file gnunet-fs.c.
|
static |
Print indexed filenames to stdout.
cls | closure |
filename | the name of the file |
file_id | hash of the contents of the indexed file |
Definition at line 58 of file gnunet-fs.c.
References GNUNET_FS_stop(), GNUNET_h2s(), GNUNET_OK, and verbose.
Referenced by run().
|
static |
Main function that will be run by the scheduler.
cls | closure |
args | remaining command-line arguments |
cfgfile | name of the configuration file used (for saving, can be NULL!) |
cfg | configuration |
Definition at line 85 of file gnunet-fs.c.
References GNUNET_FS_FLAGS_NONE, GNUNET_FS_get_indexed_files(), GNUNET_FS_OPTIONS_END, GNUNET_FS_start(), GNUNET_FS_stop(), list_indexed_files, print_indexed(), and ret.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
The main function to access special file-sharing functions.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 122 of file gnunet-fs.c.
References gettext_noop, GNUNET_free_nz, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_flag(), GNUNET_GETOPT_option_verbose(), GNUNET_OK, GNUNET_PROGRAM_run(), GNUNET_STRINGS_get_utf8_args(), list_indexed_files, ret, run(), and verbose.
|
static |
|
static |
Handle to FS service.
Definition at line 36 of file gnunet-fs.c.
Referenced by gen_topo_from_file(), GNUNET_CONFIGURATION_parse(), GNUNET_TESTBED_hosts_load_from_file(), hostkeys_load(), print_key(), and publish_inspector().
|
static |
|
static |
Option -v given?
Definition at line 46 of file gnunet-fs.c.
Referenced by main(), and print_indexed().