GNUnet 0.21.0
GNUNET_FS_DirScanner Struct Reference

An opaque structure a pointer to which is returned to the caller to be used to control the scanner. More...

Collaboration diagram for GNUNET_FS_DirScanner:
[legend]

Data Fields

struct GNUNET_HELPER_Handlehelper
 Helper process. More...
 
char * filename_expanded
 Expanded filename (as given by the scan initiator). More...
 
char * ex_arg
 Second argument to helper process. More...
 
GNUNET_FS_DirScannerProgressCallback progress_callback
 The function that will be called every time there's a progress message. More...
 
void * progress_callback_cls
 A closure for progress_callback. More...
 
struct GNUNET_FS_ShareTreeItemtoplevel
 After the scan is finished, it will contain a pointer to the top-level directory entry in the directory tree built by the scanner. More...
 
struct GNUNET_FS_ShareTreeItempos
 Current position during processing. More...
 
struct GNUNET_SCHEDULER_Taskstop_task
 Task scheduled when we are done. More...
 
char * args [4]
 Arguments for helper. More...
 

Detailed Description

An opaque structure a pointer to which is returned to the caller to be used to control the scanner.

Definition at line 39 of file fs_dirmetascan.c.

Field Documentation

◆ helper

struct GNUNET_HELPER_Handle* GNUNET_FS_DirScanner::helper

◆ filename_expanded

char* GNUNET_FS_DirScanner::filename_expanded

Expanded filename (as given by the scan initiator).

The scanner thread stores a copy here, and frees it when it finishes.

Definition at line 50 of file fs_dirmetascan.c.

Referenced by GNUNET_FS_directory_scan_abort(), and GNUNET_FS_directory_scan_start().

◆ ex_arg

char* GNUNET_FS_DirScanner::ex_arg

Second argument to helper process.

Definition at line 55 of file fs_dirmetascan.c.

Referenced by GNUNET_FS_directory_scan_abort(), and GNUNET_FS_directory_scan_start().

◆ progress_callback

GNUNET_FS_DirScannerProgressCallback GNUNET_FS_DirScanner::progress_callback

The function that will be called every time there's a progress message.

Definition at line 61 of file fs_dirmetascan.c.

Referenced by finish_scan(), GNUNET_FS_directory_scan_start(), helper_died_cb(), and process_helper_msgs().

◆ progress_callback_cls

void* GNUNET_FS_DirScanner::progress_callback_cls

A closure for progress_callback.

Definition at line 66 of file fs_dirmetascan.c.

Referenced by finish_scan(), GNUNET_FS_directory_scan_start(), helper_died_cb(), and process_helper_msgs().

◆ toplevel

struct GNUNET_FS_ShareTreeItem* GNUNET_FS_DirScanner::toplevel

After the scan is finished, it will contain a pointer to the top-level directory entry in the directory tree built by the scanner.

Definition at line 73 of file fs_dirmetascan.c.

Referenced by GNUNET_FS_directory_scan_abort(), GNUNET_FS_directory_scan_get_result(), and process_helper_msgs().

◆ pos

struct GNUNET_FS_ShareTreeItem* GNUNET_FS_DirScanner::pos

Current position during processing.

Definition at line 78 of file fs_dirmetascan.c.

Referenced by process_helper_msgs().

◆ stop_task

struct GNUNET_SCHEDULER_Task* GNUNET_FS_DirScanner::stop_task

Task scheduled when we are done.

Definition at line 83 of file fs_dirmetascan.c.

Referenced by finish_scan(), GNUNET_FS_directory_scan_abort(), helper_died_cb(), and process_helper_msgs().

◆ args

char* GNUNET_FS_DirScanner::args[4]

Arguments for helper.

Definition at line 88 of file fs_dirmetascan.c.

Referenced by GNUNET_FS_directory_scan_start().


The documentation for this struct was generated from the following file: