dpkg 1.21.11
Data Structures | Typedefs | Enumerations | Functions
treewalk.h File Reference

(b8a22b7dc)

#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
 

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)
 

Enumerations

enum  treewalk_options { TREEWALK_NONE = 0 , TREEWALK_FORCE_STAT = DPKG_BIT(0) , TREEWALK_FOLLOW_LINKS = DPKG_BIT(1) }
 

Functions

struct treeroottreewalk_open (const char *rootdir, enum treewalk_options options, const struct treewalk_funcs *funcs)
 Open a new tree to be walked. More...
 
struct treenodetreewalk_node (struct treeroot *tree)
 Return the current node. More...
 
struct treenodetreewalk_next (struct treeroot *tree)
 Return the next node. More...
 
void treewalk_close (struct treeroot *tree)
 Closes the tree being walked. More...
 
int treewalk (const char *rootdir, enum treewalk_options options, struct treewalk_funcs *funcs)
 Tree walker. More...
 
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)