summaryrefslogtreecommitdiff
path: root/src/common/unionfs.h
blob: 747262a1732bef9947ae461710ce64611afa6bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef __UNIONFS_HH__
#define __UNIONFS_HH__

#include <glib-2.0/glib.h>
#include <stdio.h>
#include "defs.h"
#include "../cli_val.h"
#include "../cli_objects.h"

#ifdef __cplusplus
extern "C" {
#endif

#define UNSAVED_FILE ".unsaved"
#define DISABLE_FILE ".disable"
#define DEF_FILE "def"
#define WHITEOUT_FILE ".wh.__dir_opaque"
#define WHITEOUT_DISABLE_FILE ".wh..disable"
#define DELETED_NODE ".wh."

#define MAX_LENGTH_DIR_PATH 4096
#define MAX_LENGTH_HELP_STR 4096

boolean
value_exists(char *path);

struct PriData {
  unsigned long _pri;
  gchar **_tok_str;
};


struct ValueData
{
  boolean _leaf;
  NODE_OPERATION _state;
};

#ifdef __cplusplus
}
#endif

#endif //__UNIONFS_HH__