]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/subversion/subversion/svn/cl-conflicts.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / subversion / subversion / svn / cl-conflicts.h
1 /*
2  * conflicts.h: Conflicts handling
3  *
4  * ====================================================================
5  *    Licensed to the Apache Software Foundation (ASF) under one
6  *    or more contributor license agreements.  See the NOTICE file
7  *    distributed with this work for additional information
8  *    regarding copyright ownership.  The ASF licenses this file
9  *    to you under the Apache License, Version 2.0 (the
10  *    "License"); you may not use this file except in compliance
11  *    with the License.  You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  *    Unless required by applicable law or agreed to in writing,
16  *    software distributed under the License is distributed on an
17  *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  *    KIND, either express or implied.  See the License for the
19  *    specific language governing permissions and limitations
20  *    under the License.
21  * ====================================================================
22  */
23
24
25 \f
26 #ifndef SVN_CONFLICTS_H
27 #define SVN_CONFLICTS_H
28
29 /*** Includes. ***/
30 #include <apr_pools.h>
31
32 #include "svn_types.h"
33 #include "svn_string.h"
34 #include "svn_wc.h"
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif /* __cplusplus */
39
40 \f
41
42 /**
43  * Return in @a desc a possibly localized human readable
44  * description of a property conflict described by @a conflict.
45  *
46  * Allocate the result in @a pool.
47  */
48 svn_error_t *
49 svn_cl__get_human_readable_prop_conflict_description(
50   const char **desc,
51   const svn_wc_conflict_description2_t *conflict,
52   apr_pool_t *pool);
53
54 /**
55  * Return in @a desc a possibly localized human readable
56  * description of a tree conflict described by @a conflict.
57  *
58  * Allocate the result in @a pool.
59  */
60 svn_error_t *
61 svn_cl__get_human_readable_tree_conflict_description(
62   const char **desc,
63   const svn_wc_conflict_description2_t *conflict,
64   apr_pool_t *pool);
65
66 /**
67  * Append to @a str an XML representation of the conflict data
68  * for @a conflict, in a format suitable for 'svn info --xml'.
69  */
70 svn_error_t *
71 svn_cl__append_conflict_info_xml(
72   svn_stringbuf_t *str,
73   const svn_wc_conflict_description2_t *conflict,
74   apr_pool_t *pool);
75
76 #ifdef __cplusplus
77 }
78 #endif /* __cplusplus */
79
80 #endif /* SVN_CONFLICTS_H */