aboutsummaryrefslogtreecommitdiff
path: root/subversion/libsvn_wc/token-map.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2015-10-12 08:54:49 +0000
committerPeter Wemm <peter@FreeBSD.org>2015-10-12 08:54:49 +0000
commitdc5d469d6574e9fb03bdd793658bb371315b306a (patch)
tree013c2e6845398e5a9ca4901dcc077769c7520e1d /subversion/libsvn_wc/token-map.h
parent58218291fa73a17020ef0447398e9e8a78f9e8c7 (diff)
downloadsrc-dc5d469d6574e9fb03bdd793658bb371315b306a.tar.gz
src-dc5d469d6574e9fb03bdd793658bb371315b306a.zip
Notes
Diffstat (limited to 'subversion/libsvn_wc/token-map.h')
-rw-r--r--subversion/libsvn_wc/token-map.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/subversion/libsvn_wc/token-map.h b/subversion/libsvn_wc/token-map.h
index 9da12b8aaafc..9bf80d6acbce 100644
--- a/subversion/libsvn_wc/token-map.h
+++ b/subversion/libsvn_wc/token-map.h
@@ -33,6 +33,7 @@
extern "C" {
#endif
+/* The kind values used on NODES */
static const svn_token_map_t kind_map[] = {
{ "file", svn_node_file }, /* MAP_FILE */
{ "dir", svn_node_dir }, /* MAP_DIR */
@@ -41,6 +42,16 @@ static const svn_token_map_t kind_map[] = {
{ NULL }
};
+/* Like kind_map, but also supports 'none' */
+static const svn_token_map_t kind_map_none[] = {
+ { "none", svn_node_none },
+ { "file", svn_node_file },
+ { "dir", svn_node_dir },
+ { "symlink", svn_node_symlink },
+ { "unknown", svn_node_unknown },
+ { NULL }
+};
+
/* Note: we only decode presence values from the database. These are a
subset of all the status values. */
static const svn_token_map_t presence_map[] = {