GNUnet  0.11.x
Data Fields
ScanTreeNode Struct Reference

A node of a directory tree. More...

Collaboration diagram for ScanTreeNode:
[legend]

Data Fields

struct ScanTreeNodenext
 This is a doubly-linked list. More...
 
struct ScanTreeNodeprev
 This is a doubly-linked list. More...
 
struct ScanTreeNodeparent
 Parent of this node, NULL for top-level entries. More...
 
struct ScanTreeNodechildren_head
 This is a doubly-linked tree NULL for files and empty directories. More...
 
struct ScanTreeNodechildren_tail
 This is a doubly-linked tree NULL for files and empty directories. More...
 
char * filename
 Name of the file/directory. More...
 
uint64_t file_size
 Size of the file (if it is a file), in bytes. More...
 
int is_directory
 GNUNET_YES if this is a directory More...
 

Detailed Description

A node of a directory tree.

Definition at line 36 of file gnunet-helper-fs-publish.c.

Field Documentation

◆ next

struct ScanTreeNode* ScanTreeNode::next

This is a doubly-linked list.

Definition at line 41 of file gnunet-helper-fs-publish.c.

Referenced by extract_files().

◆ prev

struct ScanTreeNode* ScanTreeNode::prev

This is a doubly-linked list.

Definition at line 46 of file gnunet-helper-fs-publish.c.

◆ parent

struct ScanTreeNode* ScanTreeNode::parent

Parent of this node, NULL for top-level entries.

Definition at line 51 of file gnunet-helper-fs-publish.c.

Referenced by free_tree(), and scan_callback().

◆ children_head

struct ScanTreeNode* ScanTreeNode::children_head

This is a doubly-linked tree NULL for files and empty directories.

Definition at line 57 of file gnunet-helper-fs-publish.c.

Referenced by extract_files(), free_tree(), and scan_callback().

◆ children_tail

struct ScanTreeNode* ScanTreeNode::children_tail

This is a doubly-linked tree NULL for files and empty directories.

Definition at line 63 of file gnunet-helper-fs-publish.c.

Referenced by free_tree(), and scan_callback().

◆ filename

char* ScanTreeNode::filename

Name of the file/directory.

Definition at line 68 of file gnunet-helper-fs-publish.c.

Referenced by extract_files(), free_tree(), and preprocess_file().

◆ file_size

uint64_t ScanTreeNode::file_size

Size of the file (if it is a file), in bytes.

At the moment it is set to 0 for directories.

Definition at line 74 of file gnunet-helper-fs-publish.c.

Referenced by preprocess_file().

◆ is_directory

int ScanTreeNode::is_directory

GNUNET_YES if this is a directory

Definition at line 79 of file gnunet-helper-fs-publish.c.

Referenced by extract_files(), and preprocess_file().


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