1251881Speter/*
2251881Speter * svn_dav_protocol.h: Declarations of the protocol shared by the
3251881Speter * mod_dav_svn backend for httpd's mod_dav and its ra_serf RA DAV clients.
4251881Speter *
5251881Speter * ====================================================================
6251881Speter *    Licensed to the Apache Software Foundation (ASF) under one
7251881Speter *    or more contributor license agreements.  See the NOTICE file
8251881Speter *    distributed with this work for additional information
9251881Speter *    regarding copyright ownership.  The ASF licenses this file
10251881Speter *    to you under the Apache License, Version 2.0 (the
11251881Speter *    "License"); you may not use this file except in compliance
12251881Speter *    with the License.  You may obtain a copy of the License at
13251881Speter *
14251881Speter *      http://www.apache.org/licenses/LICENSE-2.0
15251881Speter *
16251881Speter *    Unless required by applicable law or agreed to in writing,
17251881Speter *    software distributed under the License is distributed on an
18251881Speter *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19251881Speter *    KIND, either express or implied.  See the License for the
20251881Speter *    specific language governing permissions and limitations
21251881Speter *    under the License.
22251881Speter * ====================================================================
23251881Speter */
24251881Speter
25251881Speter#ifndef SVN_DAV_PROTOCOL_H
26251881Speter#define SVN_DAV_PROTOCOL_H
27251881Speter
28251881Speter#ifdef __cplusplus
29251881Speterextern "C" {
30251881Speter#endif /* __cplusplus */
31251881Speter
32251881Speter/** Names for the custom HTTP REPORTs understood by mod_dav_svn, sans
33251881Speter    namespace. */
34251881Speter#define SVN_DAV__MERGEINFO_REPORT "mergeinfo-report"
35251881Speter#define SVN_DAV__INHERITED_PROPS_REPORT "inherited-props-report"
36251881Speter
37251881Speter/** Names for XML child elements of the custom HTTP REPORTs understood
38251881Speter    by mod_dav_svn, sans namespace. */
39251881Speter#define SVN_DAV__CREATIONDATE "creationdate"
40251881Speter#define SVN_DAV__MERGEINFO_ITEM "mergeinfo-item"
41251881Speter#define SVN_DAV__MERGEINFO_PATH "mergeinfo-path"
42251881Speter#define SVN_DAV__MERGEINFO_INFO "mergeinfo-info"
43251881Speter#define SVN_DAV__PATH "path"
44251881Speter#define SVN_DAV__INHERIT "inherit"
45251881Speter#define SVN_DAV__REVISION "revision"
46251881Speter#define SVN_DAV__INCLUDE_DESCENDANTS "include-descendants"
47251881Speter#define SVN_DAV__VERSION_NAME "version-name"
48251881Speter#define SVN_DAV__IPROP_ITEM "iprop-item"
49251881Speter#define SVN_DAV__IPROP_PATH "iprop-path"
50251881Speter#define SVN_DAV__IPROP_PROPNAME "iprop-propname"
51251881Speter#define SVN_DAV__IPROP_PROPVAL "iprop-propval"
52251881Speter
53251881Speter/** Names of XML elements attributes and tags for svn_ra_change_rev_prop2()'s
54251881Speter    extension of PROPPATCH.  */
55251881Speter#define SVN_DAV__OLD_VALUE "old-value"
56251881Speter#define SVN_DAV__OLD_VALUE__ABSENT "absent"
57251881Speter
58251881Speter/** Helper typedef for svn_ra_change_rev_prop2() implementation. */
59251881Spetertypedef struct svn_dav__two_props_t {
60251881Speter  const svn_string_t *const *old_value_p;
61251881Speter  const svn_string_t *new_value;
62251881Speter} svn_dav__two_props_t;
63251881Speter
64251881Speter#ifdef __cplusplus
65251881Speter}
66251881Speter#endif /* __cplusplus */
67251881Speter
68251881Speter#endif /* SVN_DAV_PROTOCOL_H */
69