GNUnet  0.11.x
Data Fields
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 38 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 49 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 54 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 60 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 65 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 72 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 77 of file fs_dirmetascan.c.

Referenced by advance(), and process_helper_msgs().

◆ stop_task

struct GNUNET_SCHEDULER_Task* GNUNET_FS_DirScanner::stop_task

Task scheduled when we are done.

Definition at line 82 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 87 of file fs_dirmetascan.c.

Referenced by GNUNET_FS_directory_scan_start().


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