3 * ====================================================================
4 * Copyright (c) 2000-2008 CollabNet. All rights reserved.
6 * This software is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at http://subversion.tigris.org/license-1.html.
9 * If newer versions of this license are posted there, you may use a
10 * newer version instead, at your option.
12 * This software consists of voluntary contributions made by many
13 * individuals. For exact contribution history, see the revision
14 * history and logs, available at http://subversion.tigris.org/.
15 * ====================================================================
19 * @brief Subversion's data types
25 /* ### this should go away, but it causes too much breakage right now */
28 #include <apr.h> /* for apr_size_t */
29 #include <apr_pools.h>
31 #include <apr_tables.h>
36 #endif /* __cplusplus */
40 /** Subversion error object.
42 * Defined here, rather than in svn_error.h, to avoid a recursive @#include
45 typedef struct svn_error_t
47 /** APR error value, possibly SVN_ custom err */
50 /** details from producer of error */
53 /** ptr to the error we "wrap" */
54 struct svn_error_t
*child
;
56 /** The pool holding this error and any child errors it wraps */
59 /** Source file where the error originated. Only used iff @c SVN_DEBUG. */
62 /** Source line where the error originated. Only used iff @c SVN_DEBUG. */
69 /** @defgroup APR_ARRAY_compat_macros APR Array Compatibility Helper Macros
70 * These macros are provided by APR itself from version 1.3.
71 * Definitions are provided here for when using older versions of APR.
75 /** index into an apr_array_header_t */
77 #define APR_ARRAY_IDX(ary,i,type) (((type *)(ary)->elts)[i])
80 /** easier array-pushing syntax */
81 #ifndef APR_ARRAY_PUSH
82 #define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
87 /** The various types of nodes in the Subversion filesystem. */
99 /** something's here, but we don't know what */
103 /** About Special Files in Subversion
105 * Subversion denotes files that cannot be portably created or
106 * modified as "special" files (svn_node_special). It stores these
107 * files in the repository as a plain text file with the svn:special
108 * property set. The file contents contain: a platform-specific type
109 * string, a space character, then any information necessary to create
110 * the file on a supported platform. For example, if a symbolic link
111 * were being represented, the repository file would have the
112 * following contents:
114 * "link /path/to/link/target"
116 * Where 'link' is the identifier string showing that this special
117 * file should be a symbolic link and '/path/to/link/target' is the
118 * destination of the symbolic link.
120 * Special files are stored in the text-base exactly as they are
121 * stored in the repository. The platform specific files are created
122 * in the working copy at EOL/keyword translation time using
123 * svn_subst_copy_and_translate2(). If the current platform does not
124 * support a specific special file type, the file is copied into the
125 * working copy as it is seen in the repository. Because of this,
126 * users of other platforms can still view and modify the special
127 * files, even if they do not have their unique properties.
129 * New types of special files can be added by:
130 * 1. Implementing a platform-dependent routine to create a uniquely
131 * named special file and one to read the special file in
133 * 2. Creating a new textual name similar to
134 * SVN_SUBST__SPECIAL_LINK_STR in libsvn_subr/subst.c.
135 * 3. Handling the translation/detranslation case for the new type in
136 * create_special_file and detranslate_special_file, using the
140 /** A revision number. */
141 typedef long int svn_revnum_t
;
143 /** Valid revision numbers begin at 0 */
144 #define SVN_IS_VALID_REVNUM(n) ((n) >= 0)
146 /** The 'official' invalid revision num */
147 #define SVN_INVALID_REVNUM ((svn_revnum_t) -1)
149 /** Not really invalid...just unimportant -- one day, this can be its
150 * own unique value, for now, just make it the same as
151 * @c SVN_INVALID_REVNUM.
153 #define SVN_IGNORED_REVNUM ((svn_revnum_t) -1)
155 /** Convert NULL-terminated C string @a str to a revision number. */
156 #define SVN_STR_TO_REV(str) ((svn_revnum_t) atol(str))
159 * Parse NULL-terminated C string @a str as a revision number and
160 * store its value in @a rev. If @a endptr is non-NULL, then the
161 * address of the first non-numeric character in @a str is stored in
162 * it. If there are no digits in @a str, then @a endptr is set (if
163 * non-NULL), and the error @c SVN_ERR_REVNUM_PARSE_FAILURE error is
164 * returned. Negative numbers parsed from @a str are considered
165 * invalid, and result in the same error.
170 svn_revnum_parse(svn_revnum_t
*rev
,
172 const char **endptr
);
174 /** Originally intended to be used in printf()-style functions to format
175 * revision numbers. Deprecated due to incompatibilities with language
176 * translation tools (e.g. gettext).
178 * New code should use a bare "%ld" format specifier for formatting revision
181 * @deprecated Provided for backward compatibility with the 1.0 API.
183 #define SVN_REVNUM_T_FMT "ld"
186 /** The size of a file in the Subversion FS. */
187 typedef apr_int64_t svn_filesize_t
;
189 /** The 'official' invalid file size constant. */
190 #define SVN_INVALID_FILESIZE ((svn_filesize_t) -1)
192 /** In printf()-style functions, format file sizes using this. */
193 #define SVN_FILESIZE_T_FMT APR_INT64_T_FMT
195 #ifndef DOXYGEN_SHOULD_SKIP_THIS
196 /* Parse a base-10 numeric string into a 64-bit unsigned numeric value. */
197 /* NOTE: Private. For use by Subversion's own code only. See issue #1644. */
198 /* FIXME: APR should supply a function to do this, such as "apr_atoui64". */
199 #define svn__atoui64(X) ((apr_uint64_t) apr_atoi64(X))
203 /** YABT: Yet Another Boolean Type */
204 typedef int svn_boolean_t
;
217 /** An enum to indicate whether recursion is needed. */
218 enum svn_recurse_kind
220 svn_nonrecursive
= 1,
224 /** The concept of depth for directories.
226 * @note This is similar to, but not exactly the same as, the WebDAV
227 * and LDAP concepts of depth.
233 /* The order of these depths is important: the higher the number,
234 the deeper it descends. This allows us to compare two depths
235 numerically to decide which should govern. */
237 /* Depth undetermined or ignored. */
238 svn_depth_unknown
= -2,
240 /* Exclude (i.e., don't descend into) directory D. */
241 /* NOTE: In Subversion 1.5, svn_depth_exclude is *not* supported
242 anywhere in the client-side (libsvn_wc/libsvn_client/etc) code;
243 it is only supported as an argument to set_path functions in the
244 ra and repos reporters. (This will enable future versions of
245 Subversion to run updates, etc, against 1.5 servers with proper
246 svn_depth_exclude behavior, once we get a chance to implement
247 client-side support for svn_depth_exclude.)
249 svn_depth_exclude
= -1,
251 /* Just the named directory D, no entries. Updates will not pull in
252 any files or subdirectories not already present. */
255 /* D + its file children, but not subdirs. Updates will pull in any
256 files not already present, but not subdirectories. */
259 /* D + immediate children (D and its entries). Updates will pull in
260 any files or subdirectories not already present; those
261 subdirectories' this_dir entries will have depth-empty. */
262 svn_depth_immediates
= 2,
264 /* D + all descendants (full recursion from D). Updates will pull
265 in any files or subdirectories not already present; those
266 subdirectories' this_dir entries will have depth-infinity.
267 Equivalent to the pre-1.5 default update behavior. */
268 svn_depth_infinity
= 3
273 /** Return a constant string expressing @a depth as an English word,
274 * e.g., "infinity", "immediates", etc. The string is not localized,
275 * as it may be used for client<->server communications.
280 svn_depth_to_word(svn_depth_t depth
);
283 /** Return the appropriate depth for @a depth_str. @a word is as
284 * returned from svn_depth_to_word(). If @a depth_str does not
285 * represent a recognized depth, return @c svn_depth_unknown.
290 svn_depth_from_word(const char *word
);
293 /* Return @c svn_depth_infinity if boolean @a recurse is TRUE, else
294 * return @c svn_depth_files.
296 * @note New code should never need to use this, it is called only
297 * from pre-depth APIs, for compatibility.
301 #define SVN_DEPTH_INFINITY_OR_FILES(recurse) \
302 ((recurse) ? svn_depth_infinity : svn_depth_files)
305 /* Return @c svn_depth_infinity if boolean @a recurse is TRUE, else
306 * return @c svn_depth_immediates.
308 * @note New code should never need to use this, it is called only
309 * from pre-depth APIs, for compatibility.
313 #define SVN_DEPTH_INFINITY_OR_IMMEDIATES(recurse) \
314 ((recurse) ? svn_depth_infinity : svn_depth_immediates)
317 /* Return @c svn_depth_infinity if boolean @a recurse is TRUE, else
318 * return @c svn_depth_empty.
320 * @note New code should never need to use this, it is called only
321 * from pre-depth APIs, for compatibility.
325 #define SVN_DEPTH_INFINITY_OR_EMPTY(recurse) \
326 ((recurse) ? svn_depth_infinity : svn_depth_empty)
329 /* Return a recursion boolean based on @a depth.
331 * Although much code has been converted to use depth, some code still
332 * takes a recurse boolean. In most cases, it makes sense to treat
333 * unknown or infinite depth as recursive, and any other depth as
334 * non-recursive (which in turn usually translates to @c svn_depth_files).
336 #define SVN_DEPTH_IS_RECURSIVE(depth) \
337 (((depth) == svn_depth_infinity || (depth) == svn_depth_unknown) \
342 * It is sometimes convenient to indicate which parts of an @c svn_dirent_t
343 * object you are actually interested in, so that calculating and sending
344 * the data corresponding to the other fields can be avoided. These values
345 * can be used for that purpose.
347 * @defgroup svn_dirent_fields Dirent fields
351 /** An indication that you are interested in the @c kind field */
352 #define SVN_DIRENT_KIND 0x00001
354 /** An indication that you are interested in the @c size field */
355 #define SVN_DIRENT_SIZE 0x00002
357 /** An indication that you are interested in the @c has_props field */
358 #define SVN_DIRENT_HAS_PROPS 0x00004
360 /** An indication that you are interested in the @c created_rev field */
361 #define SVN_DIRENT_CREATED_REV 0x00008
363 /** An indication that you are interested in the @c time field */
364 #define SVN_DIRENT_TIME 0x00010
366 /** An indication that you are interested in the @c last_author field */
367 #define SVN_DIRENT_LAST_AUTHOR 0x00020
369 /** A combination of all the dirent fields */
370 #define SVN_DIRENT_ALL ~((apr_uint32_t ) 0)
374 /** A general subversion directory entry. */
375 typedef struct svn_dirent_t
378 svn_node_kind_t kind
;
380 /** length of file text, or 0 for directories */
383 /** does the node have props? */
384 svn_boolean_t has_props
;
386 /** last rev in which this node changed */
387 svn_revnum_t created_rev
;
389 /** time of created_rev (mod-time) */
392 /** author of created_rev */
393 const char *last_author
;
395 /* IMPORTANT: If you extend this struct, check svn_dirent_dup(). */
399 /** Return a deep copy of @a dirent, allocated in @a pool.
403 svn_dirent_t
*svn_dirent_dup(const svn_dirent_t
*dirent
,
408 /** Keyword substitution.
410 * All the keywords Subversion recognizes.
412 * Note that there is a better, more general proposal out there, which
413 * would take care of both internationalization issues and custom
414 * keywords (e.g., $NetBSD$). See
417 http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=8921
419 From: "Jonathan M. Manning" <jmanning@alisa-jon.net>
420 To: dev@subversion.tigris.org
421 Date: Fri, 14 Dec 2001 11:56:54 -0500
422 Message-ID: <87970000.1008349014@bdldevel.bl.bdx.com>
423 Subject: Re: keywords @endverbatim
425 * and Eric Gillespie's support of same:
428 http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=8757
430 From: "Eric Gillespie, Jr." <epg@pretzelnet.org>
431 To: dev@subversion.tigris.org
432 Date: Wed, 12 Dec 2001 09:48:42 -0500
433 Message-ID: <87k7vsebp1.fsf@vger.pretzelnet.org>
434 Subject: Re: Customizable Keywords @endverbatim
436 * However, it is considerably more complex than the scheme below.
437 * For now we're going with simplicity, hopefully the more general
438 * solution can be done post-1.0.
440 * @defgroup svn_types_keywords Keyword definitions
444 /** The maximum size of an expanded or un-expanded keyword. */
445 #define SVN_KEYWORD_MAX_LEN 255
447 /** The most recent revision in which this file was changed. */
448 #define SVN_KEYWORD_REVISION_LONG "LastChangedRevision"
450 /** Short version of LastChangedRevision */
451 #define SVN_KEYWORD_REVISION_SHORT "Rev"
453 /** Medium version of LastChangedRevision, matching the one CVS uses.
454 * @since New in 1.1. */
455 #define SVN_KEYWORD_REVISION_MEDIUM "Revision"
457 /** The most recent date (repository time) when this file was changed. */
458 #define SVN_KEYWORD_DATE_LONG "LastChangedDate"
460 /** Short version of LastChangedDate */
461 #define SVN_KEYWORD_DATE_SHORT "Date"
463 /** Who most recently committed to this file. */
464 #define SVN_KEYWORD_AUTHOR_LONG "LastChangedBy"
466 /** Short version of LastChangedBy */
467 #define SVN_KEYWORD_AUTHOR_SHORT "Author"
469 /** The URL for the head revision of this file. */
470 #define SVN_KEYWORD_URL_LONG "HeadURL"
472 /** Short version of HeadURL */
473 #define SVN_KEYWORD_URL_SHORT "URL"
475 /** A compressed combination of the other four keywords. */
476 #define SVN_KEYWORD_ID "Id"
481 /** All information about a commit.
483 * @note Objects of this type should always be created using the
484 * svn_create_commit_info() function.
488 typedef struct svn_commit_info_t
490 /** just-committed revision. */
491 svn_revnum_t revision
;
493 /** server-side date of the commit. */
496 /** author of the commit. */
499 /** error message from post-commit hook, or NULL. */
500 const char *post_commit_err
;
506 * Allocate an object of type @c svn_commit_info_t in @a pool and
509 * The @c revision field of the new struct is set to @c
510 * SVN_INVALID_REVNUM. All other fields are initialized to @c NULL.
512 * @note Any object of the type @c svn_commit_info_t should
513 * be created using this function.
514 * This is to provide for extending the svn_commit_info_t in
520 svn_create_commit_info(apr_pool_t
*pool
);
524 * Return a deep copy @a src_commit_info allocated in @a pool.
529 svn_commit_info_dup(const svn_commit_info_t
*src_commit_info
,
533 /** A structure to represent a path that changed for a log entry. */
534 typedef struct svn_log_changed_path_t
536 /** 'A'dd, 'D'elete, 'R'eplace, 'M'odify */
539 /** Source path of copy (if any). */
540 const char *copyfrom_path
;
542 /** Source revision of copy (if any). */
543 svn_revnum_t copyfrom_rev
;
545 } svn_log_changed_path_t
;
549 * Return a deep copy of @a changed_path, allocated in @a pool.
553 svn_log_changed_path_t
*
554 svn_log_changed_path_dup(const svn_log_changed_path_t
*changed_path
,
558 * A structure to represent all the information about a particular log entry.
560 * @note To allow for extending the @c svn_log_entry_t structure in future
561 * releases, always use svn_log_entry_create() to allocate the structure.
563 typedef struct svn_log_entry_t
565 /** A hash containing as keys every path committed in @a revision; the
566 * values are (@c svn_log_changed_path_t *) stuctures.
568 * ### The only reason @a changed_paths is not qualified with `const' is
569 * that we usually want to loop over it, and apr_hash_first() doesn't
570 * take a const hash, for various reasons. I'm not sure that those
571 * "various reasons" are actually even relevant anymore, and if
572 * they're not, it might be nice to change apr_hash_first() so
573 * read-only uses of hashes can be protected via the type system.
575 apr_hash_t
*changed_paths
;
577 /** The revision of the commit. */
578 svn_revnum_t revision
;
580 /** The hash of requested revision properties, which may be NULL if it
581 * would contain no revprops. */
582 apr_hash_t
*revprops
;
585 * Whether or not this message has children.
587 * When a log operation requests additional merge information, extra log
588 * entries may be returned as a result of this entry. The new entries, are
589 * considered children of the original entry, and will follow it. When
590 * the HAS_CHILDREN flag is set, the receiver should increment its stack
591 * depth, and wait until an entry is provided with SVN_INVALID_REVNUM which
592 * indicates the end of the children.
594 * For log operations which do not request additional merge information, the
595 * HAS_CHILDREN flag is always FALSE.
597 * For more information see:
598 * http://subversion.tigris.org/merge-tracking/design.html#commutative-reporting
600 svn_boolean_t has_children
;
604 * Returns an @c svn_log_entry_t, allocated in @a pool with all fields
605 * initialized to NULL values.
607 * @note To allow for extending the @c svn_log_entry_t structure in future
608 * releases, this function should always be used to allocate the structure.
613 svn_log_entry_create(apr_pool_t
*pool
);
615 /** The callback invoked by log message loopers, such as
616 * @c svn_ra_plugin_t.get_log() and svn_repos_get_logs().
618 * This function is invoked once on each log message, in the order
619 * determined by the caller (see above-mentioned functions).
621 * @a baton is what you think it is, and @a log_entry contains relevent
622 * information for the log message. Any of @a log_entry->author,
623 * @a log_entry->date, or @a log_entry->message may be @c NULL.
625 * If @a log_entry->date is neither NULL nor the empty string, it was
626 * generated by svn_time_to_cstring() and can be converted to
627 * @c apr_time_t with svn_time_from_cstring().
629 * If @a log_entry->changed_paths is non-@c NULL, then it contains as keys
630 * every path committed in @a log_entry->revision; the values are
631 * (@c svn_log_changed_path_t *) structures.
633 * If @a log_entry->has_children is @c TRUE, the message will be followed
634 * immediately by any number of merged revisions (child messages), which are
635 * terminated by an invocation with SVN_INVALID_REVNUM. This usage may
638 * Use @a pool for temporary allocation. If the caller is iterating
639 * over log messages, invoking this receiver on each, we recommend the
640 * standard pool loop recipe: create a subpool, pass it as @a pool to
641 * each call, clear it after each iteration, destroy it after the loop
642 * is done. (For allocation that must last beyond the lifetime of a
643 * given receiver call, use a pool in @a baton.)
648 typedef svn_error_t
*(*svn_log_entry_receiver_t
)
650 svn_log_entry_t
*log_entry
,
654 * Similar to @c svn_log_entry_receiver_t, except this uses separate
655 * parameters for each part of the log entry.
657 * @deprecated Provided for backward compatibility with the 1.4 API.
659 typedef svn_error_t
*(*svn_log_message_receiver_t
)
661 apr_hash_t
*changed_paths
,
662 svn_revnum_t revision
,
664 const char *date
, /* use svn_time_from_cstring() if need apr_time_t */
669 /** Callback function type for commits.
671 * When a commit succeeds, an instance of this is invoked with the
672 * @a commit_info, along with the @a baton closure.
673 * @a pool can be used for temporary allocations.
677 typedef svn_error_t
*(*svn_commit_callback2_t
)
678 (const svn_commit_info_t
*commit_info
,
682 /** Same as @c svn_commit_callback2_t, but uses individual
683 * data elements instead of the @c svn_commit_info_t structure
685 * @deprecated Provided for backward compatibility with the 1.3 API.
687 typedef svn_error_t
*(*svn_commit_callback_t
)
688 (svn_revnum_t new_revision
,
694 /** A buffer size that may be used when processing a stream of data.
696 * @note We don't use this constant any longer, since it is considered to be
697 * unnecessarily large.
699 * @deprecated Provided for backwards compatibility with the 1.3 API.
701 #define SVN_STREAM_CHUNK_SIZE 102400
703 #ifndef DOXYGEN_SHOULD_SKIP_THIS
705 * The maximum amount we (ideally) hold in memory at a time when
706 * processing a stream of data.
708 * For example, when copying data from one stream to another, do it in
709 * blocks of this size.
711 * NOTE: This is an internal macro, put here for convenience.
712 * No public API may depend on the particular value of this macro.
714 #define SVN__STREAM_CHUNK_SIZE 16384
717 /** The maximum amount we can ever hold in memory. */
718 /* FIXME: Should this be the same as SVN_STREAM_CHUNK_SIZE? */
719 #define SVN_MAX_OBJECT_SIZE (((apr_size_t) -1) / 2)
723 /* ### Note: despite being about mime-TYPES, these probably don't
724 * ### belong in svn_types.h. However, no other header is more
725 * ### appropriate, and didn't feel like creating svn_validate.h for
729 /** Validate @a mime_type.
731 * If @a mime_type does not contain a "/", or ends with non-alphanumeric
732 * data, return @c SVN_ERR_BAD_MIME_TYPE, else return success.
734 * Use @a pool only to find error allocation.
736 * Goal: to match both "foo/bar" and "foo/bar; charset=blah", without
737 * being too strict about it, but to disallow mime types that have
738 * quotes, newlines, or other garbage on the end, such as might be
739 * unsafe in an HTTP header.
741 svn_error_t
*svn_mime_type_validate(const char *mime_type
,
745 /** Return FALSE iff @a mime_type is a textual type.
747 * All mime types that start with "text/" are textual, plus some special
748 * cases (for example, "image/x-xbitmap").
750 svn_boolean_t
svn_mime_type_is_binary(const char *mime_type
);
754 /** A user defined callback that subversion will call with a user defined
755 * baton to see if the current operation should be continued. If the operation
756 * should continue, the function should return @c SVN_NO_ERROR, if not, it
757 * should return @c SVN_ERR_CANCELLED.
759 typedef svn_error_t
*(*svn_cancel_func_t
)(void *cancel_baton
);
764 * A lock object, for client & server to share.
766 * A lock represents the exclusive right to add, delete, or modify a
767 * path. A lock is created in a repository, wholly controlled by the
768 * repository. A "lock-token" is the lock's UUID, and can be used to
769 * learn more about a lock's fields, and or/make use of the lock.
770 * Because a lock is immutable, a client is free to not only cache the
771 * lock-token, but the lock's fields too, for convenience.
773 * Note that the 'is_dav_comment' field is wholly ignored by every
774 * library except for mod_dav_svn. The field isn't even marshalled
775 * over the network to the client. Assuming lock structures are
776 * created with apr_pcalloc(), a default value of 0 is universally safe.
778 * @note in the current implementation, only files are lockable.
782 typedef struct svn_lock_t
784 const char *path
; /**< the path this lock applies to */
785 const char *token
; /**< unique URI representing lock */
786 const char *owner
; /**< the username which owns the lock */
787 const char *comment
; /**< (optional) description of lock */
788 svn_boolean_t is_dav_comment
; /**< was comment made by generic DAV client? */
789 apr_time_t creation_date
; /**< when lock was made */
790 apr_time_t expiration_date
; /**< (optional) when lock will expire;
791 If value is 0, lock will never expire. */
795 * Returns an @c svn_lock_t, allocated in @a pool with all fields initialized
798 * @note To allow for extending the @c svn_lock_t structure in the future
799 * releases, this function should always be used to allocate the structure.
804 svn_lock_create(apr_pool_t
*pool
);
807 * Return a deep copy of @a lock, allocated in @a pool.
812 svn_lock_dup(const svn_lock_t
*lock
, apr_pool_t
*pool
);
815 * Return a formatted Universal Unique IDentifier (UUID) string.
820 svn_uuid_generate(apr_pool_t
*pool
);
823 * Mergeinfo representing a merge of a range of revisions.
827 typedef struct svn_merge_range_t
830 * If the 'start' field is less than the 'end' field then 'start' is
831 * exclusive and 'end' inclusive of the range described. If 'start'
832 * is greater than 'end' then the opposite is true. If 'start'
833 * equals 'end' the meaning of the range is not defined.
839 * Whether this merge range should be inherited by treewise
840 * descendants of the path to which the range applies. */
841 svn_boolean_t inheritable
;
845 * Return a copy of @a range, allocated in @a pool.
850 svn_merge_range_dup(svn_merge_range_t
*range
, apr_pool_t
*pool
);
853 * Returns true if the changeset committed in revision @a rev is one
854 * of the changesets in the range @a range.
859 svn_merge_range_contains_rev(svn_merge_range_t
*range
, svn_revnum_t rev
);
863 /** @defgroup node_location_seg_reporting Node location segment reporting.
867 * A representation of a segment of a object's version history with an
868 * emphasis on the object's location in the repository as of various
873 typedef struct svn_location_segment_t
875 /** The beginning (oldest) and ending (youngest) revisions for this
877 svn_revnum_t range_start
;
878 svn_revnum_t range_end
;
880 /** The absolute (sans leading slash) path for this segment. May be
881 NULL to indicate gaps in an object's history. */
884 } svn_location_segment_t
;
888 * A callback invoked by generators of @c svn_location_segment_t
889 * objects, used to report information about a versioned object's
890 * history in terms of its location in the repository filesystem over
893 typedef svn_error_t
*(*svn_location_segment_receiver_t
)
894 (svn_location_segment_t
*segment
,
900 * Return a deep copy of @a segment, allocated in @a pool.
904 svn_location_segment_t
*
905 svn_location_segment_dup(svn_location_segment_t
*segment
,
912 #endif /* __cplusplus */
914 #endif /* SVN_TYPES_H */