/** * @copyright * ==================================================================== * Copyright (c) 2000-2006 CollabNet. All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at http://subversion.tigris.org/license-1.html. * If newer versions of this license are posted there, you may use a * newer version instead, at your option. * * This software consists of voluntary contributions made by many * individuals. For exact contribution history, see the revision * history and logs, available at http://subversion.tigris.org/. * ==================================================================== * @endcopyright */ #ifndef SVN_DIFF_SUMMARIZE_H #define SVN_DIFF_SUMMARIZE_H // skip with subversion 1.4 and up #include #if SVN_VER_MAJOR == 1 && SVN_VER_MINOR < 4 #include "svn_types.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** The difference type in an svn_diff_summarize_t structure. * * @since New in 1.4. */ typedef enum svn_client_diff_summarize_kind_t { /** An item with no text modifications */ svn_client_diff_summarize_kind_normal, /** An added item */ svn_client_diff_summarize_kind_added, /** An item with text modifications */ svn_client_diff_summarize_kind_modified, /** A deleted item */ svn_client_diff_summarize_kind_deleted } svn_client_diff_summarize_kind_t; /** A struct that describes the diff of an item. Passed to * @c svn_diff_summarize_func_t. * * @note Fields may be added to the end of this structure in future * versions. Therefore, users shouldn't allocate structures of this * type, to preserve binary compatibility. * * @since New in 1.4. */ typedef struct svn_client_diff_summarize_t { /** Path relative to the target. */ const char *path; /** Change kind */ svn_client_diff_summarize_kind_t summarize_kind; /** Properties changed? */ svn_boolean_t prop_changed; /** File or dir */ svn_node_kind_t node_kind; } svn_client_diff_summarize_t; /** A callback used in svn_client_diff_summarize() and * svn_client_diff_summarize_peg() for reporting a @a diff summary. * * All allocations should be performed in @a pool. * * @a baton is a closure object; it should be provided by the implementation, * and passed by the caller. * * @since New in 1.4. */ typedef svn_error_t *(*svn_client_diff_summarize_func_t) (const svn_client_diff_summarize_t *diff, void *baton, apr_pool_t *pool); #ifdef __cplusplus } #endif /* __cplusplus */ #endif // SVN_VER_MAJOR == 1 && SVN_VER_MINOR < 4 #endif // SVN_DIFF_SUMMARIZE_H