Integrated generic allocator with repo_tree.
[svn-fe.git] / svndump.h
blob41855db89d9736572cfbf755e517569aaaa29846
1 /******************************************************************************
3 * Copyright (C) 2005 Stefan Hegny, hydrografix Consulting GmbH,
4 * Frankfurt/Main, Germany
5 * and others, see http://svn2cc.sarovar.org
7 * Copyright (C) 2010 David Barr <david.barr@cordelta.com>.
8 * All rights reserved.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice(s), this list of conditions and the following disclaimer
15 * unmodified other than the allowable addition of one or more
16 * copyright notices.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 * notice(s), this list of conditions and the following disclaimer in
19 * the documentation and/or other materials provided with the
20 * distribution.
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
23 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
25 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE
26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
29 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
31 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
32 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 ******************************************************************************/
36 #ifndef SVNDUMP_H_
37 #define SVNDUMP_H_
39 /**
40 * node was moved to somwhere else
41 * (this is not contained in the dump)
42 * (only used in the FileChangeSet)
44 #define NODEACT_REMOVE 5
46 /**
47 * node was moved from somwhere else
48 * (this is not contained in the dump)
49 * (only used in the FileChangeSet)
51 #define NODEACT_MOVE 4
53 /**
54 * not clear if moved (if deleted afterwards) or
55 * added as copy (which can not be modeled straight in ccase).
56 * Will be used on create of SvnNodeEntry iff
57 * action is add and source is given.
58 * Will be modified after importing all files
59 * of a revision to NODEACT_ADD (copy which can
60 * not be modeled in ccase) or NODEACT_MOVE
62 #define NODEACT_COPY_OR_MOVE 3
64 /**
65 * node was deleted
67 #define NODEACT_DELETE 2
69 /**
70 * Node was added or copied from other location
72 #define NODEACT_ADD 1
74 /**
75 * node was modified
77 #define NODEACT_CHANGE 0
79 /**
80 * unknown action
82 #define NODEACT_UNKNOWN -1
84 /**
85 * Node is a directory
87 #define NODEKIND_DIR 1
89 /**
90 * Node is a file
92 #define NODEKIND_FILE 0
94 /**
95 * unknown type of node
97 #define NODEKIND_UNKNOWN -1
99 char *svndump_read_line(void);
101 void svndump_read(void);
103 void svnrev_read(uint32_t revision_id);
105 #endif