dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
treewalk.h File Reference

(99f5582ed)

#include <dpkg/macros.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stdbool.h>
Include dependency graph for treewalk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  treewalk_funcs
 

Macros

#define TREEWALK_OBJECT   (struct treewalk_funcs){ 0 }
 

Typedefs

typedef int treenode_visit_func(struct treenode *node)
 
typedef bool treenode_skip_func(struct treenode *node)
 
typedef int treenode_sort_func(struct treenode *node)
 

Functions

struct treeroottreewalk_open (const char *rootdir, enum treewalk_options options, const struct treewalk_funcs *funcs)
 Open a new tree to be walked.
 
struct treenodetreewalk_node (struct treeroot *tree)
 Return the current node.
 
struct treenodetreewalk_next (struct treeroot *tree)
 Return the next node.
 
void treewalk_close (struct treeroot *tree)
 Closes the tree being walked.
 
int treewalk (const char *rootdir, enum treewalk_options options, struct treewalk_funcs *funcs)
 Tree walker.
 
struct treenodetreenode_get_parent (struct treenode *node)
 
const char * treenode_get_name (struct treenode *node)
 
const char * treenode_get_pathname (struct treenode *node)
 
const char * treenode_get_virtname (struct treenode *node)
 
mode_t treenode_get_mode (struct treenode *node)
 
struct stat * treenode_get_stat (struct treenode *node)
 

Variables

enum DPKG_ATTR_ENUM_FLAGS treewalk_options
 
 TREEWALK_NONE = 0
 
 TREEWALK_FORCE_STAT = DPKG_BIT(0)
 
 TREEWALK_FOLLOW_LINKS = DPKG_BIT(1)
 

Variable Documentation

◆ TREEWALK_FOLLOW_LINKS

TREEWALK_FOLLOW_LINKS = DPKG_BIT(1)

Referenced by archivefiles().

◆ TREEWALK_FORCE_STAT

TREEWALK_FORCE_STAT = DPKG_BIT(0)

◆ TREEWALK_NONE

TREEWALK_NONE = 0