Loading...
Searching...
No Matches
svn_types.h File Reference

Subversion's data types. More...

`#include "svn_types_impl.h"`
`#include <stdlib.h>`
`#include <limits.h>`
`#include <apr.h>`
`#include <apr_version.h>`
`#include <apr_errno.h>`
`#include <apr_pools.h>`
`#include <apr_hash.h>`
`#include <apr_tables.h>`
`#include <apr_time.h>`
`#include <apr_strings.h>`
`#include "svn_error.h"`

Go to the source code of this file.

## Data Structures

struct | svn_error_t
| Subversion error object. More...
struct | svn_dirent_t
| A general subversion directory entry. More...
struct | svn_commit_info_t
| All information about a commit. More...
struct | svn_log_changed_path2_t
| A structure to represent a path that changed for a log entry. More...
struct | svn_log_changed_path_t
| A structure to represent a path that changed for a log entry. More...
struct | svn_log_entry_t
| A structure to represent all the information about a particular log entry. More...
struct | svn_lock_t
| A lock object, for client & server to share. More...
struct | svn_merge_range_t
| Mergeinfo representing a merge of a range of revisions. More...
struct | svn_location_segment_t
| A representation of a segment of an object's version history with an emphasis on the object's location in the repository as of various revisions. More...

## Macros

#define | SVN_DEPRECATED
| Macro used to mark deprecated functions.
#define | SVN_EXPERIMENTAL
| Macro used to mark experimental functions.
#define | SVN_NEEDS_SENTINEL_NULL
| Macro used to mark functions that require a final null sentinel argument.
#define | SVN_UNALIGNED_ACCESS_IS_OK 0
| Indicate whether the current platform supports unaligned data access.
#define | TRUE 1
| uhh... true
#define | FALSE 0
| uhh... false
#define | SVN_VA_NULL ((struct svn__null_pointer_constant_stdarg_sentinel_t*)0)
| Null pointer constant used as a sentinel in variable argument lists.
#define | APR_ARRAY_IDX(ary, i, type)
| index into an apr_array_header_t
#define | APR_ARRAY_PUSH(ary, type)
| easier array-pushing syntax
#define | SVN__APR_STATUS_IS_ENOTDIR(s)
| On Windows, APR_STATUS_IS_ENOTDIR includes several kinds of invalid-pathname error but not ERROR_INVALID_NAME, so we include it.
#define | SVN__APR_STATUS_IS_EPIPE(s)
| On Windows, APR_STATUS_IS_EPIPE does not include ERROR_NO_DATA error.
#define | SVN_IS_VALID_REVNUM(n)
| About Special Files in Subversion.
#define | SVN_IGNORED_REVNUM ((svn_revnum_t) -1)
| Not really invalid...just unimportant – one day, this can be its own unique value, for now, just make it the same as SVN_INVALID_REVNUM.
#define | SVN_STR_TO_REV(str)
| Convert NULL-terminated C string str to a revision number.
#define | SVN_REVNUM_T_FMT "ld"
| Originally intended to be used in printf()-style functions to format revision numbers.
#define | SVN_INVALID_FILESIZE ((svn_filesize_t) -1)
| The 'official' invalid file size constant.
#define | SVN_FILESIZE_T_FMT APR_INT64_T_FMT
| In printf()-style functions, format file sizes using this.
#define | SVN_DEPTH_INFINITY_OR_FILES(recurse)
| Return svn_depth_infinity if boolean recurse is TRUE, else return svn_depth_files.
#define | SVN_DEPTH_INFINITY_OR_IMMEDIATES(recurse)
| Return svn_depth_infinity if boolean recurse is TRUE, else return svn_depth_immediates.
#define | SVN_DEPTH_INFINITY_OR_EMPTY(recurse)
| Return svn_depth_infinity if boolean recurse is TRUE, else return svn_depth_empty.
#define | SVN_DEPTH_IS_RECURSIVE(depth)
| Return a recursion boolean based on depth.
#define | SVN_DIRENT_KIND 0x00001
| An indication that you are interested in the `kind` field.
#define | SVN_DIRENT_SIZE 0x00002
| An indication that you are interested in the `size` field.
#define | SVN_DIRENT_HAS_PROPS 0x00004
| An indication that you are interested in the `has_props` field.
#define | SVN_DIRENT_CREATED_REV 0x00008
| An indication that you are interested in the `created_rev` field.
#define | SVN_DIRENT_TIME 0x00010
| An indication that you are interested in the `time` field.
#define | SVN_DIRENT_LAST_AUTHOR 0x00020
| An indication that you are interested in the `last_author` field.
#define | SVN_DIRENT_ALL ~((apr_uint32_t ) 0)
| A combination of all the dirent fields.
#define | SVN_KEYWORD_MAX_LEN 255
| The maximum size of an expanded or un-expanded keyword.
#define | SVN_KEYWORD_REVISION_LONG "LastChangedRevision"
| The most recent revision in which this file was changed.
#define | SVN_KEYWORD_REVISION_SHORT "Rev"
| Short version of LastChangedRevision.
#define | SVN_KEYWORD_REVISION_MEDIUM "Revision"
| Medium version of LastChangedRevision, matching the one CVS uses.
#define | SVN_KEYWORD_DATE_LONG "LastChangedDate"
| The most recent date (repository time) when this file was changed.
#define | SVN_KEYWORD_DATE_SHORT "Date"
| Short version of LastChangedDate.
#define | SVN_KEYWORD_AUTHOR_LONG "LastChangedBy"
| Who most recently committed to this file.
#define | SVN_KEYWORD_AUTHOR_SHORT "Author"
| Short version of LastChangedBy.
#define | SVN_KEYWORD_URL_LONG "HeadURL"
| The URL for the head revision of this file.
#define | SVN_KEYWORD_URL_SHORT "URL"
| Short version of HeadURL.
#define | SVN_KEYWORD_ID "Id"
| A compressed combination of the other four keywords.
#define | SVN_KEYWORD_HEADER "Header"
| A full combination of the first four keywords.
#define | SVN_STREAM_CHUNK_SIZE 102400
| A buffer size that may be used when processing a stream of data.
#define | SVN_MAX_OBJECT_SIZE (((apr_size_t) -1) / 2)
| The maximum amount we can ever hold in memory.
#define | SVN_LINENUM_MAX_VALUE ULONG_MAX
| The maximum value of an svn_linenum_t.

## Typedefs

typedef int | svn_boolean_t
| YABT: Yet Another Boolean Type.
typedef struct svn_error_t | svn_error_t
| Subversion error object.
typedef struct svn_version_t | svn_version_t
typedef apr_int64_t | svn_filesize_t
| The size of a file in the Subversion FS.
typedef struct svn_dirent_t | svn_dirent_t
| A general subversion directory entry.
typedef struct svn_commit_info_t | svn_commit_info_t
| All information about a commit.
typedef struct svn_log_changed_path2_t | svn_log_changed_path2_t
| A structure to represent a path that changed for a log entry.
typedef struct svn_log_changed_path_t | svn_log_changed_path_t
| A structure to represent a path that changed for a log entry.
typedef struct svn_log_entry_t | svn_log_entry_t
| A structure to represent all the information about a particular log entry.
typedef svn_error_t *(* | svn_log_entry_receiver_t) (void *baton, svn_log_entry_t *log_entry, apr_pool_t *pool)
| The callback invoked by log message loopers, such as svn_ra_plugin_t.get_log() and svn_repos_get_logs().
typedef svn_error_t *(* | svn_log_message_receiver_t) (void *baton, apr_hash_t *changed_paths, svn_revnum_t revision, const char *author, const char *date, const char *message, apr_pool_t *pool)
| Similar to svn_log_entry_receiver_t, except this uses separate parameters for each part of the log entry.
typedef svn_error_t *(* | svn_commit_callback2_t) (const svn_commit_info_t *commit_info, void *baton, apr_pool_t *pool)
| Callback function type for commits.
typedef svn_error_t *(* | svn_commit_callback_t) (svn_revnum_t new_revision, const char *date, const char *author, void *baton)
| Same as svn_commit_callback2_t, but uses individual data elements instead of the svn_commit_info_t structure.
typedef svn_error_t *(* | svn_cancel_func_t) (void *cancel_baton)
| A user defined callback that subversion will call with a user defined baton to see if the current operation should be continued.
typedef struct svn_lock_t | svn_lock_t
| A lock object, for client & server to share.
typedef struct svn_merge_range_t | svn_merge_range_t
| Mergeinfo representing a merge of a range of revisions.
typedef struct svn_location_segment_t | svn_location_segment_t
| A representation of a segment of an object's version history with an emphasis on the object's location in the repository as of various revisions.
typedef svn_error_t *(* | svn_location_segment_receiver_t) (svn_location_segment_t *segment, void *baton, apr_pool_t *pool)
| A callback invoked by generators of svn_location_segment_t objects, used to report information about a versioned object's history in terms of its location in the repository filesystem over time.
typedef unsigned long | svn_linenum_t
| A line number, such as in a file or a stream.

## Enumerations

enum | svn_recurse_kind { svn_nonrecursive = 1 , svn_recursive }
| An enum to indicate whether recursion is needed. More...

## Functions

const void * | apr_hash_this_key (apr_hash_index_t *hi)
| Return the key of the hash table entry indexed by hi.
apr_ssize_t | apr_hash_this_key_len (apr_hash_index_t *hi)
| Return the key length of the hash table entry indexed by hi.
void * | apr_hash_this_val (apr_hash_index_t *hi)
| Return the value of the hash table entry indexed by hi.
const char * | svn_node_kind_to_word (svn_node_kind_t kind)
| Return a constant string expressing kind as an English word, e.g., "file", "dir", etc.
svn_node_kind_t | svn_node_kind_from_word (const char *word)
| Return the appropriate node_kind for word.
const char * | svn_tristate__to_word (svn_tristate_t tristate)
| Return a constant string "true", "false" or NULL representing the value of tristate.
svn_tristate_t | svn_tristate__from_word (const char *word)
| Return the appropriate tristate for word.
svn_error_t * | svn_revnum_parse (svn_revnum_t *rev, const char *str, const char **endptr)
| Parse NULL-terminated C string str as a revision number and store its value in rev.
const char * | svn_depth_to_word (svn_depth_t depth)
| Return a constant string expressing depth as an English word, e.g., "infinity", "immediates", etc.
svn_depth_t | svn_depth_from_word (const char *word)
| Return the appropriate depth for depth_str.
svn_dirent_t * | svn_dirent_dup (const svn_dirent_t *dirent, apr_pool_t *pool)
| Return a deep copy of dirent, allocated in pool.
svn_dirent_t * | svn_dirent_create (apr_pool_t *result_pool)
| Create a new svn_dirent_t instance with all values initialized to their not-available values.
svn_commit_info_t * | svn_create_commit_info (apr_pool_t *pool)
| Allocate an object of type svn_commit_info_t in pool and return it.
svn_commit_info_t * | svn_commit_info_dup (const svn_commit_info_t *src_commit_info, apr_pool_t *pool)
| Return a deep copy src_commit_info allocated in pool.
svn_log_changed_path2_t * | svn_log_changed_path2_create (apr_pool_t *pool)
| Returns an svn_log_changed_path2_t, allocated in pool with all fields initialized to NULL, None or empty values.
svn_log_changed_path2_t * | svn_log_changed_path2_dup (const svn_log_changed_path2_t *changed_path, apr_pool_t *pool)
| Return a deep copy of changed_path, allocated in pool.
svn_log_changed_path_t * | svn_log_changed_path_dup (const svn_log_changed_path_t *changed_path, apr_pool_t *pool)
| Return a deep copy of changed_path, allocated in pool.
svn_log_entry_t * | svn_log_entry_create (apr_pool_t *pool)
| Returns an svn_log_entry_t, allocated in pool with all fields initialized to NULL values.
svn_log_entry_t * | svn_log_entry_dup (const svn_log_entry_t *log_entry, apr_pool_t *pool)
| Return a deep copy of log_entry, allocated in pool.
svn_error_t * | svn_mime_type_validate (const char *mime_type, apr_pool_t *pool)
| Validate mime_type.
svn_boolean_t | svn_mime_type_is_binary (const char *mime_type)
| Return FALSE iff mime_type is a textual type.
svn_lock_t * | svn_lock_create (apr_pool_t *pool)
| Returns an svn_lock_t, allocated in pool with all fields initialized to NULL values.
svn_lock_t * | svn_lock_dup (const svn_lock_t *lock, apr_pool_t *pool)
| Return a deep copy of lock, allocated in pool.
const char * | svn_uuid_generate (apr_pool_t *pool)
| Return a formatted Universal Unique IDentifier (UUID) string.
svn_merge_range_t * | svn_merge_range_dup (const svn_merge_range_t *range, apr_pool_t *pool)
| Return a copy of range, allocated in pool.
svn_boolean_t | svn_merge_range_contains_rev (const svn_merge_range_t *range, svn_revnum_t rev)
| Returns true if the changeset committed in revision rev is one of the changesets in the range range.
svn_location_segment_t * | svn_location_segment_dup (const svn_location_segment_t *segment, apr_pool_t *pool)
| Return a deep copy of segment, allocated in pool.

## Detailed Description

Subversion's data types.

# autotoc_md125

Definition in file svn_types.h.

## Macro Definition Documentation

## FALSE

#define FALSE 0

uhh... false

Definition at line 150 of file svn_types.h.

## SVN__APR_STATUS_IS_ENOTDIR

#define SVN__APR_STATUS_IS_ENOTDIR | ( |  | s | ) |

Value:
APR_STATUS_IS_ENOTDIR(s)

On Windows, APR_STATUS_IS_ENOTDIR includes several kinds of invalid-pathname error but not ERROR_INVALID_NAME, so we include it.

We also include ERROR_DIRECTORY as that was not included in apr versions before 1.4.0 and this fix is not backported

Definition at line 287 of file svn_types.h.

## SVN__APR_STATUS_IS_EPIPE

#define SVN__APR_STATUS_IS_EPIPE | ( |  | s | ) |

Value:
APR_STATUS_IS_EPIPE(s)

On Windows, APR_STATUS_IS_EPIPE does not include ERROR_NO_DATA error.

So we include it.

Definition at line 298 of file svn_types.h.

## SVN_DEPRECATED

#define SVN_DEPRECATED

Macro used to mark deprecated functions.

Since
  New in 1.6.

Definition at line 62 of file svn_types.h.

Referenced by svn_auth_get_gnome_keyring_simple_provider(), svn_auth_get_keychain_simple_provider(), svn_auth_get_kwallet_simple_provider(), svn_auth_get_kwallet_ssl_client_cert_pw_provider(), svn_auth_get_platform_specific_client_providers(), svn_auth_get_simple_provider2(), svn_auth_get_ssl_client_cert_pw_file_provider2(), svn_auth_get_windows_simple_provider(), svn_auth_get_windows_ssl_client_cert_pw_provider(), svn_auth_get_windows_ssl_server_trust_provider(), svn_auth_gnome_keyring_version(), svn_auth_kwallet_version(), svn_base64_decode_string(), svn_base64_encode2(), svn_base64_encode_string2(), svn_client_add2(), svn_client_add3(), svn_client_add4(), svn_client_add5(), svn_client_args_to_target_array2(), svn_client_blame2(), svn_client_blame3(), svn_client_blame4(), svn_client_blame5(), svn_client_blame6(), svn_client_cat2(), svn_client_cat3(), svn_client_checkout2(), svn_client_checkout3(), svn_client_cleanup2(), svn_client_commit2(), svn_client_commit3(), svn_client_commit4(), svn_client_commit5(), svn_client_commit6(), svn_client_commit_item3_create(), svn_client_commit_item3_dup(), svn_client_conflict_text_get_resolution(), svn_client_copy2(), svn_client_copy3(), svn_client_copy4(), svn_client_copy5(), svn_client_copy6(), svn_client_copy7(), svn_client_create_context2(), svn_client_delete2(), svn_client_delete3(), svn_client_delete4(), svn_client_diff2(), svn_client_diff3(), svn_client_diff4(), svn_client_diff5(), svn_client_diff6(), svn_client_diff7(), svn_client_diff_peg2(), svn_client_diff_peg3(), svn_client_diff_peg4(), svn_client_diff_peg5(), svn_client_diff_peg6(), svn_client_diff_peg7(), svn_client_diff_summarize2(), svn_client_diff_summarize_peg2(), svn_client_export2(), svn_client_export3(), svn_client_export4(), svn_client_export5(), svn_client_get_repos_root(), svn_client_get_simple_prompt_provider(), svn_client_get_simple_provider(), svn_client_get_ssl_client_cert_file_provider(), svn_client_get_ssl_client_cert_prompt_provider(), svn_client_get_ssl_client_cert_pw_file_provider(), svn_client_get_ssl_server_trust_file_provider(), svn_client_get_ssl_server_trust_prompt_provider(), svn_client_get_username_prompt_provider(), svn_client_get_username_provider(), svn_client_get_windows_simple_provider(), svn_client_import2(), svn_client_import3(), svn_client_import4(), svn_client_import5(), svn_client_info2(), svn_client_info3(), svn_client_info4(), svn_client_list(), svn_client_list2(), svn_client_list3(), svn_client_list4(), svn_client_log2(), svn_client_log3(), svn_client_log4(), svn_client_log5(), svn_client_ls2(), svn_client_ls3(), svn_client_merge(), svn_client_merge2(), svn_client_merge3(), svn_client_merge4(), svn_client_merge5(), svn_client_merge_peg2(), svn_client_merge_peg3(), svn_client_merge_peg4(), svn_client_merge_peg5(), svn_client_mergeinfo_log(), svn_client_mergeinfo_log2(), svn_client_mergeinfo_log_merged(), svn_client_mkdir2(), svn_client_mkdir3(), svn_client_mkdir4(), svn_client_move2(), svn_client_move3(), svn_client_move4(), svn_client_move5(), svn_client_move6(), svn_client_move7(), svn_client_open_ra_session2(), svn_client_propget2(), svn_client_propget4(), svn_client_propget5(), svn_client_proplist2(), svn_client_proplist3(), svn_client_proplist4(), svn_client_propset2(), svn_client_propset3(), svn_client_propset_local(), svn_client_relocate2(), svn_client_revert2(), svn_client_revert3(), svn_client_revert4(), svn_client_revprop_set2(), svn_client_root_url_from_path(), svn_client_status2(), svn_client_status3(), svn_client_status4(), svn_client_status5(), svn_client_status6(), svn_client_switch2(), svn_client_switch3(), svn_client_update2(), svn_client_update3(), svn_client_update4(), svn_client_url_from_path2(), svn_client_uuid_from_path2(), svn_client_uuid_from_url(), svn_client_version(), svn_cmdline_create_auth_baton2(), svn_cmdline_prompt_user2(), svn_config_create2(), svn_config_read2(), svn_config_read3(), svn_cstring_join2(), svn_delta_path_driver2(), svn_delta_path_driver3(), svn_diff_diff3_2(), svn_diff_diff4_2(), svn_diff_diff_2(), svn_diff_file_diff3_2(), svn_diff_file_diff4_2(), svn_diff_file_diff_2(), svn_diff_file_output_merge2(), svn_diff_file_output_merge3(), svn_diff_file_output_unified2(), svn_diff_file_output_unified3(), svn_diff_file_output_unified4(), svn_diff_mem_string_output_merge2(), svn_diff_mem_string_output_merge3(), svn_diff_mem_string_output_unified2(), svn_diff_mem_string_output_unified3(), svn_diff_output2(), svn_dso_initialize2(), svn_fs_access_add_lock_token2(), svn_fs_begin_txn2(), svn_fs_berkeley_logfiles(), svn_fs_berkeley_path(), svn_fs_change_rev_prop2(), svn_fs_check_related(), svn_fs_create2(), svn_fs_create_berkeley(), svn_fs_delete_berkeley(), svn_fs_file_checksum(), svn_fs_freeze(), svn_fs_get_locks2(), svn_fs_get_mergeinfo2(), svn_fs_get_mergeinfo3(), svn_fs_history_prev2(), svn_fs_hotcopy2(), svn_fs_hotcopy3(), svn_fs_hotcopy_berkeley(), svn_fs_new(), svn_fs_node_history2(), svn_fs_open2(), svn_fs_open_berkeley(), svn_fs_paths_changed2(), svn_fs_paths_changed3(), svn_fs_revision_prop2(), svn_fs_revision_proplist2(), svn_fs_upgrade2(), svn_handle_error2(), svn_handle_warning2(), svn_hash_read(), svn_hash_write_incremental(), svn_io_detect_mimetype2(), svn_io_dir_walk2(), svn_io_file_checksum2(), svn_io_file_create_empty(), svn_io_file_read_full2(), svn_io_file_rename2(), svn_io_get_dirents2(), svn_io_get_dirents3(), svn_io_open_unique_file2(), svn_io_open_unique_file3(), svn_io_remove_dir(), svn_io_remove_dir2(), svn_io_remove_file2(), svn_io_run_diff(), svn_io_run_diff2(), svn_io_run_diff3_2(), svn_io_set_file_read_write(), svn_io_start_cmd2(), svn_io_start_cmd3(), svn_io_stat_dirent2(), svn_io_write_atomic2(), svn_md5_digest_to_cstring(), svn_md5_digest_to_cstring_display(), svn_md5_empty_string_digest(), svn_mergeinfo_catalog_merge(), svn_mergeinfo_diff2(), svn_mergeinfo_inheritable2(), svn_mergeinfo_intersect2(), svn_mergeinfo_merge2(), svn_opt_args_to_target_array2(), svn_opt_args_to_target_array3(), svn_opt_get_canonical_subcommand2(), svn_opt_get_canonical_subcommand3(), svn_opt_get_option_from_code2(), svn_opt_get_option_from_code3(), svn_opt_print_generic_help2(), svn_opt_print_generic_help3(), svn_opt_print_help2(), svn_opt_print_help3(), svn_opt_print_help4(), svn_opt_print_help5(), svn_opt_resolve_revisions(), svn_opt_subcommand_help2(), svn_opt_subcommand_help3(), svn_opt_subcommand_help4(), svn_opt_subcommand_takes_option2(), svn_opt_subcommand_takes_option3(), svn_opt_subcommand_takes_option4(), svn_parse_date(), svn_path_basename(), svn_path_canonicalize(), svn_path_compare_paths(), svn_path_get_absolute(), svn_path_get_longest_ancestor(), svn_path_internal_style(), svn_path_is_child(), svn_path_is_dotpath_present(), svn_path_is_empty(), svn_path_join(), svn_path_join_many(), svn_path_local_style(), svn_path_remove_components(), svn_path_split_if_file(), svn_path_url_add_component2(), svn_property_kind2(), svn_ra_change_rev_prop2(), svn_ra_dav_init(), svn_ra_do_diff2(), svn_ra_do_diff3(), svn_ra_do_status2(), svn_ra_do_switch2(), svn_ra_do_switch3(), svn_ra_do_update2(), svn_ra_do_update3(), svn_ra_get_commit_editor2(), svn_ra_get_commit_editor3(), svn_ra_get_dir2(), svn_ra_get_file_revs2(), svn_ra_get_locks2(), svn_ra_get_log2(), svn_ra_get_repos_root2(), svn_ra_get_uuid2(), svn_ra_init_ra_libs(), svn_ra_local_init(), svn_ra_open2(), svn_ra_open3(), svn_ra_open4(), svn_ra_open5(), svn_ra_print_modules(), svn_ra_serf_init(), svn_ra_svn_create_conn2(), svn_ra_svn_create_conn3(), svn_ra_svn_create_conn4(), svn_ra_svn_create_conn5(), svn_ra_svn_drive_editor2(), svn_ra_svn_end_list(), svn_ra_svn_flush(), svn_ra_svn_handle_commands(), svn_ra_svn_handle_commands2(), svn_ra_svn_init(), svn_ra_svn_parse_proplist(), svn_ra_svn_parse_tuple(), svn_ra_svn_read_cmd_response(), svn_ra_svn_read_item(), svn_ra_svn_read_tuple(), svn_ra_svn_skip_leading_garbage(), svn_ra_svn_start_list(), svn_ra_svn_version(), svn_ra_svn_write_cmd(), svn_ra_svn_write_cmd_response(), svn_ra_svn_write_cstring(), svn_ra_svn_write_number(), svn_ra_svn_write_proplist(), svn_ra_svn_write_string(), svn_ra_svn_write_tuple(), svn_ra_svn_write_word(), svn_rangelist_inheritable2(), svn_rangelist_merge2(), svn_repos_authz_parse2(), svn_repos_authz_read2(), svn_repos_authz_read3(), svn_repos_authz_read4(), svn_repos_begin_report2(), svn_repos_begin_report3(), svn_repos_dir_delta2(), svn_repos_dump_fs2(), svn_repos_dump_fs3(), svn_repos_dump_fs4(), svn_repos_fs_begin_txn_for_commit(), svn_repos_fs_begin_txn_for_commit2(), svn_repos_fs_change_rev_prop2(), svn_repos_fs_change_rev_prop3(), svn_repos_fs_change_rev_prop4(), svn_repos_fs_get_locks2(), svn_repos_fs_get_mergeinfo2(), svn_repos_fs_pack2(), svn_repos_get_commit_editor2(), svn_repos_get_commit_editor3(), svn_repos_get_commit_editor4(), svn_repos_get_commit_editor5(), svn_repos_get_fs_build_parser2(), svn_repos_get_fs_build_parser3(), svn_repos_get_fs_build_parser5(), svn_repos_get_fs_build_parser6(), svn_repos_get_logs2(), svn_repos_get_logs3(), svn_repos_get_logs4(), svn_repos_get_logs5(), svn_repos_history2(), svn_repos_hotcopy2(), svn_repos_hotcopy3(), svn_repos_link_path2(), svn_repos_link_path3(), svn_repos_load_fs2(), svn_repos_load_fs3(), svn_repos_load_fs4(), svn_repos_load_fs5(), svn_repos_load_fs6(), svn_repos_open2(), svn_repos_open3(), svn_repos_parse_dumpstream(), svn_repos_parse_dumpstream2(), svn_repos_recover2(), svn_repos_recover3(), svn_repos_recover4(), svn_repos_replay2(), svn_repos_set_path2(), svn_repos_set_path3(), svn_repos_upgrade2(), svn_repos_verify_fs2(), svn_repos_verify_fs3(), svn_stream_checksummed2(), svn_stream_contents_same2(), svn_stream_copy2(), svn_stream_copy3(), svn_stream_for_stdin2(), svn_stream_from_aprfile2(), svn_stream_read2(), svn_stream_set_read2(), svn_string_from_stream2(), svn_stringbuf_from_file2(), svn_subst_build_keywords2(), svn_subst_build_keywords3(), svn_subst_copy_and_translate2(), svn_subst_copy_and_translate3(), svn_subst_copy_and_translate4(), svn_subst_create_specialfile(), svn_subst_keywords_differ(), svn_subst_keywords_differ2(), svn_subst_stream_translated(), svn_subst_translate_cstring(), svn_subst_translate_cstring2(), svn_subst_translate_stream2(), svn_subst_translate_stream3(), svn_subst_translate_string2(), svn_subst_translate_to_normal_form(), svn_txdelta2(), svn_txdelta_to_svndiff2(), svn_txdelta_to_svndiff3(), svn_utf_cstring_from_utf8_ex2(), svn_utf_cstring_to_utf8_ex2(), svn_utf_initialize2(), svn_ver_check_list2(), svn_wc_add2(), svn_wc_add3(), svn_wc_add4(), svn_wc_add_from_disk2(), svn_wc_add_from_disk3(), svn_wc_add_lock2(), svn_wc_add_repos_file2(), svn_wc_add_repos_file3(), svn_wc_add_repos_file4(), svn_wc_adm_access_path(), svn_wc_adm_access_pool(), svn_wc_adm_close(), svn_wc_adm_close2(), svn_wc_adm_open(), svn_wc_adm_open2(), svn_wc_adm_open3(), svn_wc_adm_open_anchor(), svn_wc_adm_probe_open(), svn_wc_adm_probe_open2(), svn_wc_adm_probe_open3(), svn_wc_adm_probe_retrieve(), svn_wc_adm_probe_try(), svn_wc_adm_probe_try2(), svn_wc_adm_probe_try3(), svn_wc_adm_retrieve(), svn_wc_canonicalize_svn_prop(), svn_wc_check_root(), svn_wc_check_wc(), svn_wc_check_wc2(), svn_wc_cleanup2(), svn_wc_cleanup3(), svn_wc_cleanup4(), svn_wc_conflict_description2_dup(), svn_wc_conflict_description_create_prop2(), svn_wc_conflict_description_create_text2(), svn_wc_conflict_description_create_tree2(), svn_wc_conflict_version_create2(), svn_wc_conflicted_p(), svn_wc_conflicted_p2(), svn_wc_copy(), svn_wc_copy2(), svn_wc_copy3(), svn_wc_crawl_revisions2(), svn_wc_crawl_revisions3(), svn_wc_crawl_revisions4(), svn_wc_create_tmp_file(), svn_wc_create_tmp_file2(), svn_wc_crop_tree2(), svn_wc_delete2(), svn_wc_delete3(), svn_wc_delete4(), svn_wc_diff2(), svn_wc_diff3(), svn_wc_diff4(), svn_wc_diff5(), svn_wc_diff6(), svn_wc_dup_status2(), svn_wc_dup_status3(), svn_wc_edited_externals(), svn_wc_ensure_adm(), svn_wc_ensure_adm2(), svn_wc_ensure_adm3(), svn_wc_ensure_adm4(), svn_wc_entry(), svn_wc_external_item2_create(), svn_wc_get_actual_target2(), svn_wc_get_diff_editor2(), svn_wc_get_diff_editor3(), svn_wc_get_diff_editor4(), svn_wc_get_diff_editor5(), svn_wc_get_diff_editor6(), svn_wc_get_ignores2(), svn_wc_get_pristine_contents(), svn_wc_get_pristine_contents2(), svn_wc_get_prop_diffs2(), svn_wc_get_status_editor2(), svn_wc_get_status_editor3(), svn_wc_get_status_editor4(), svn_wc_get_status_editor5(), svn_wc_get_switch_editor2(), svn_wc_get_switch_editor3(), svn_wc_get_switch_editor4(), svn_wc_get_update_editor(), svn_wc_get_update_editor2(), svn_wc_get_update_editor3(), svn_wc_get_update_editor4(), svn_wc_info_dup(), svn_wc_init_traversal_info(), svn_wc_is_wc_root2(), svn_wc_locked2(), svn_wc_merge2(), svn_wc_merge3(), svn_wc_merge4(), svn_wc_merge5(), svn_wc_merge_props(), svn_wc_merge_props2(), svn_wc_merge_props3(), svn_wc_parse_externals_description2(), svn_wc_parse_externals_description3(), svn_wc_process_committed(), svn_wc_process_committed2(), svn_wc_process_committed3(), svn_wc_process_committed4(), svn_wc_process_committed_queue(), svn_wc_process_committed_queue2(), svn_wc_prop_get2(), svn_wc_prop_list2(), svn_wc_prop_set2(), svn_wc_prop_set3(), svn_wc_prop_set4(), svn_wc_props_modified_p2(), svn_wc_queue_committed2(), svn_wc_queue_committed3(), svn_wc_read_kind2(), svn_wc_relocate2(), svn_wc_relocate3(), svn_wc_relocate4(), svn_wc_remove_from_revision_control(), svn_wc_remove_from_revision_control2(), svn_wc_remove_lock2(), svn_wc_resolved_conflict2(), svn_wc_resolved_conflict3(), svn_wc_resolved_conflict4(), svn_wc_resolved_conflict5(), svn_wc_restore(), svn_wc_revert2(), svn_wc_revert3(), svn_wc_revert4(), svn_wc_revert5(), svn_wc_revert6(), svn_wc_revision_status2(), svn_wc_set_changelist2(), svn_wc_status2(), svn_wc_status3(), svn_wc_text_modified_p2(), svn_wc_translated_file(), svn_wc_translated_file2(), svn_wc_transmit_prop_deltas2(), svn_wc_transmit_text_deltas2(), svn_wc_transmit_text_deltas3(), svn_wc_walk_entries(), svn_wc_walk_entries2(), svn_wc_walk_entries3(), svn_wc_walk_status(), and svn_xml_make_header2().

## SVN_DEPTH_INFINITY_OR_EMPTY

#define SVN_DEPTH_INFINITY_OR_EMPTY | ( |  | recurse | ) |

Value:
((recurse) ? svn_depth_infinity : svn_depth_empty)
svn_depth_empty
@ svn_depth_empty
Just the named directory D, no entries.
Definition svn_types_impl.h:134
svn_depth_infinity
@ svn_depth_infinity
D + all descendants (full recursion from D).
Definition svn_types_impl.h:149

Return svn_depth_infinity if boolean recurse is TRUE, else return svn_depth_empty.

Note
  New code should never need to use this, it is called only from pre-depth APIs, for compatibility.

Since
  New in 1.5.

Definition at line 508 of file svn_types.h.

## SVN_DEPTH_INFINITY_OR_FILES

#define SVN_DEPTH_INFINITY_OR_FILES | ( |  | recurse | ) |

Value:
((recurse) ? svn_depth_infinity : svn_depth_files)
svn_depth_files
@ svn_depth_files
D + its file children, but not subdirs.
Definition svn_types_impl.h:138

Return svn_depth_infinity if boolean recurse is TRUE, else return svn_depth_files.

Note
  New code should never need to use this, it is called only from pre-depth APIs, for compatibility.

Since
  New in 1.5.

Definition at line 486 of file svn_types.h.

## SVN_DEPTH_INFINITY_OR_IMMEDIATES

#define SVN_DEPTH_INFINITY_OR_IMMEDIATES | ( |  | recurse | ) |

Value:
((recurse) ? svn_depth_infinity : svn_depth_immediates)
svn_depth_immediates
@ svn_depth_immediates
D + immediate children (D and its entries).
Definition svn_types_impl.h:143

Return svn_depth_infinity if boolean recurse is TRUE, else return svn_depth_immediates.

Note
  New code should never need to use this, it is called only from pre-depth APIs, for compatibility.

Since
  New in 1.5.

Definition at line 497 of file svn_types.h.

## SVN_DEPTH_IS_RECURSIVE

#define SVN_DEPTH_IS_RECURSIVE | ( |  | depth | ) |

Value:
((depth) == svn_depth_infinity || (depth) == svn_depth_unknown)
svn_depth_unknown
@ svn_depth_unknown
Depth undetermined or ignored.
Definition svn_types_impl.h:119

Return a recursion boolean based on depth.

Although much code has been converted to use depth, some code still takes a recurse boolean. In most cases, it makes sense to treat unknown or infinite depth as recursive, and any other depth as non-recursive (which in turn usually translates to svn_depth_files).

Definition at line 518 of file svn_types.h.

## SVN_EXPERIMENTAL

#define SVN_EXPERIMENTAL

Macro used to mark experimental functions.

Since
  New in 1.9.

Definition at line 88 of file svn_types.h.

## SVN_FILESIZE_T_FMT

#define SVN_FILESIZE_T_FMT APR_INT64_T_FMT

In printf()-style functions, format file sizes using this.

Definition at line 440 of file svn_types.h.

## SVN_IGNORED_REVNUM

#define SVN_IGNORED_REVNUM ((svn_revnum_t) -1)

Not really invalid...just unimportant – one day, this can be its own unique value, for now, just make it the same as SVN_INVALID_REVNUM.

Definition at line 399 of file svn_types.h.

## SVN_INVALID_FILESIZE

#define SVN_INVALID_FILESIZE ((svn_filesize_t) -1)

The 'official' invalid file size constant.

Definition at line 437 of file svn_types.h.

## SVN_IS_VALID_REVNUM

#define SVN_IS_VALID_REVNUM | ( |  | n | ) |

Value:
((n) >= 0)

About Special Files in Subversion.

Subversion denotes files that cannot be portably created or modified as "special" files (svn_node_special). It stores these files in the repository as a plain text file with the svn:special property set. The file contents contain: a platform-specific type string, a space character, then any information necessary to create the file on a supported platform. For example, if a symbolic link were being represented, the repository file would have the following contents:

"link /path/to/link/target"

Where 'link' is the identifier string showing that this special file should be a symbolic link and '/path/to/link/target' is the destination of the symbolic link.

Special files are stored in the text-base exactly as they are stored in the repository. The platform specific files are created in the working copy at EOL/keyword translation time using svn_subst_copy_and_translate2(). If the current platform does not support a specific special file type, the file is copied into the working copy as it is seen in the repository. Because of this, users of other platforms can still view and modify the special files, even if they do not have their unique properties.

New types of special files can be added by:

1. Implementing a platform-dependent routine to create a uniquely named special file and one to read the special file in libsvn_subr/io.c.
2. Creating a new textual name similar to SVN_SUBST__SPECIAL_LINK_STR in libsvn_subr/subst.c.
3. Handling the translation/detranslation case for the new type in create_special_file_from_stream and detranslate_special_file, using the routines from 1. Valid revision numbers begin at 0

Definition at line 393 of file svn_types.h.

## SVN_LINENUM_MAX_VALUE

#define SVN_LINENUM_MAX_VALUE ULONG_MAX

The maximum value of an svn_linenum_t.

Since
  New in 1.7.

Definition at line 1251 of file svn_types.h.

## SVN_MAX_OBJECT_SIZE

#define SVN_MAX_OBJECT_SIZE (((apr_size_t) -1) / 2)

The maximum amount we can ever hold in memory.

Definition at line 1044 of file svn_types.h.

## SVN_NEEDS_SENTINEL_NULL

#define SVN_NEEDS_SENTINEL_NULL

Macro used to mark functions that require a final null sentinel argument.

Since
  New in 1.9.

Definition at line 109 of file svn_types.h.

Referenced by svn_dirent_join_many(), svn_path_join_many(), and svn_xml_make_open_tag().

## SVN_REVNUM_T_FMT

#define SVN_REVNUM_T_FMT "ld"

Originally intended to be used in printf()-style functions to format revision numbers.

Deprecated due to incompatibilities with language translation tools (e.g. gettext).

New code should use a bare "%ld" format specifier for formatting revision numbers.

Deprecated
  Provided for backward compatibility with the 1.0 API.

Definition at line 429 of file svn_types.h.

## SVN_STR_TO_REV

#define SVN_STR_TO_REV | ( |  | str | ) |

Value:
((svn_revnum_t) atol(str))
svn_revnum_t
long int svn_revnum_t
A revision number.
Definition svn_types_impl.h:95

Convert NULL-terminated C string str to a revision number.

Definition at line 402 of file svn_types.h.

## SVN_STREAM_CHUNK_SIZE

#define SVN_STREAM_CHUNK_SIZE 102400

A buffer size that may be used when processing a stream of data.

Note
  We don't use this constant any longer, since it is considered to be unnecessarily large.

Deprecated
  Provided for backwards compatibility with the 1.3 API.

Definition at line 1026 of file svn_types.h.

## SVN_UNALIGNED_ACCESS_IS_OK

#define SVN_UNALIGNED_ACCESS_IS_OK 0

Indicate whether the current platform supports unaligned data access.

On the majority of machines running SVN (x86 / x64), unaligned access is much cheaper than repeated aligned access. Define this macro to 1 on those machines. Unaligned access on other machines (e.g. IA64) will trigger memory access faults or simply misbehave.

Note: Some platforms may only support unaligned access for integers (PowerPC). As a result this macro should only be used to determine if unaligned access is supported for integers.

Since
  New in 1.7.

Definition at line 134 of file svn_types.h.

## SVN_VA_NULL

#define SVN_VA_NULL ((struct svn__null_pointer_constant_stdarg_sentinel_t*)0)

Null pointer constant used as a sentinel in variable argument lists.

Use of this macro ensures that the argument is of the correct size when a pointer is expected. (The macro `NULL` is not defined as a pointer on all systems, and the arguments to variadic functions are not converted automatically to the expected type.)

Since
  New in 1.9.

Definition at line 170 of file svn_types.h.

## TRUE

#define TRUE 1

uhh... true

Definition at line 145 of file svn_types.h.

## Typedef Documentation

## svn_boolean_t

typedef int svn_boolean_t

YABT: Yet Another Boolean Type.

Definition at line 141 of file svn_types.h.

## svn_cancel_func_t

typedef svn_error_t *(* svn_cancel_func_t) (void *cancel_baton)

A user defined callback that subversion will call with a user defined baton to see if the current operation should be continued.

If the operation should continue, the function should return SVN_NO_ERROR, if not, it should return SVN_ERR_CANCELLED.

Definition at line 1085 of file svn_types.h.

## svn_commit_callback2_t

typedef svn_error_t *(* svn_commit_callback2_t) (const svn_commit_info_t *commit_info, void *baton, apr_pool_t *pool)

Callback function type for commits.

When a commit succeeds, an instance of this is invoked with the commit_info, along with the baton closure. pool can be used for temporary allocations.

Note
  Implementers of this callback that pass this callback to svn_ra_get_commit_editor3() should be careful with returning errors as these might be returned as commit errors. See the documentation of svn_ra_get_commit_editor3() for more details.

Since
  New in 1.4.

Definition at line 1001 of file svn_types.h.

## svn_commit_callback_t

typedef svn_error_t *(* svn_commit_callback_t) (svn_revnum_t new_revision, const char *date, const char *author, void *baton)

Same as svn_commit_callback2_t, but uses individual data elements instead of the svn_commit_info_t structure.

Deprecated
  Provided for backward compatibility with the 1.3 API.

Definition at line 1011 of file svn_types.h.

## svn_commit_info_t

typedef struct svn_commit_info_t svn_commit_info_t

All information about a commit.

Note
  Objects of this type should always be created using the svn_create_commit_info() function.

Since
  New in 1.3.

## svn_dirent_t

typedef struct svn_dirent_t svn_dirent_t

A general subversion directory entry.

Note
  To allow for extending the svn_dirent_t structure in future releases, always use svn_dirent_create() to allocate the stucture.

Since
  New in 1.6.

## svn_error_t

typedef struct svn_error_t svn_error_t

Subversion error object.

Defined here, rather than in svn_error.h, to avoid a recursive #include situation.

## svn_filesize_t

typedef apr_int64_t svn_filesize_t

The size of a file in the Subversion FS.

Definition at line 434 of file svn_types.h.

## svn_linenum_t

typedef unsigned long svn_linenum_t

A line number, such as in a file or a stream.

Since
  New in 1.7.

Definition at line 1245 of file svn_types.h.

## svn_lock_t

typedef struct svn_lock_t svn_lock_t

A lock object, for client & server to share.

A lock represents the exclusive right to add, delete, or modify a path. A lock is created in a repository, wholly controlled by the repository. A "lock-token" is the lock's UUID, and can be used to learn more about a lock's fields, and or/make use of the lock. Because a lock is immutable, a client is free to not only cache the lock-token, but the lock's fields too, for convenience.

Note that the 'is_dav_comment' field is wholly ignored by every library except for mod_dav_svn. The field isn't even marshalled over the network to the client. Assuming lock structures are created with apr_pcalloc(), a default value of 0 is universally safe.

Note
  in the current implementation, only files are lockable.

Since
  New in 1.2.

## svn_log_changed_path2_t

typedef struct svn_log_changed_path2_t svn_log_changed_path2_t

A structure to represent a path that changed for a log entry.

Note
  To allow for extending the svn_log_changed_path2_t structure in future releases, always use svn_log_changed_path2_create() to allocate the structure.

Since
  New in 1.6.

## svn_log_changed_path_t

typedef struct svn_log_changed_path_t svn_log_changed_path_t

A structure to represent a path that changed for a log entry.

Same as the first three fields of svn_log_changed_path2_t.

Deprecated
  Provided for backward compatibility with the 1.5 API.

## svn_log_entry_receiver_t

typedef svn_error_t *(* svn_log_entry_receiver_t) (void *baton, svn_log_entry_t *log_entry, apr_pool_t *pool)

The callback invoked by log message loopers, such as svn_ra_plugin_t.get_log() and svn_repos_get_logs().

This function is invoked once on each log message, in the order determined by the caller (see above-mentioned functions).

baton is what you think it is, and log_entry contains relevant information for the log message. Any of log_entry->author, log_entry->date, or log_entry->message may be `NULL`.

If log_entry->date is neither NULL nor the empty string, it was generated by svn_time_to_cstring() and can be converted to `apr_time_t` with svn_time_from_cstring().

If log_entry->changed_paths is non-`NULL`, then it contains as keys every path committed in log_entry->revision; the values are (svn_log_changed_path_t *) structures.

If log_entry->has_children is `TRUE`, the message will be followed immediately by any number of merged revisions (child messages), which are terminated by an invocation with SVN_INVALID_REVNUM. This usage may be recursive.

Use pool for temporary allocation. If the caller is iterating over log messages, invoking this receiver on each, we recommend the standard pool loop recipe: create a subpool, pass it as pool to each call, clear it after each iteration, destroy it after the loop is done. (For allocation that must last beyond the lifetime of a given receiver call, use a pool in baton.)

Since
  New in 1.5.

Definition at line 967 of file svn_types.h.

## svn_log_entry_t

typedef struct svn_log_entry_t svn_log_entry_t

A structure to represent all the information about a particular log entry.

Note
  To allow for extending the svn_log_entry_t structure in future releases, always use svn_log_entry_create() to allocate the structure.

Since
  New in 1.5.

## svn_log_message_receiver_t

typedef svn_error_t *(* svn_log_message_receiver_t) (void *baton, apr_hash_t *changed_paths, svn_revnum_t revision, const char *author, const char *date, const char *message, apr_pool_t *pool)

Similar to svn_log_entry_receiver_t, except this uses separate parameters for each part of the log entry.

Deprecated
  Provided for backward compatibility with the 1.4 API.

Definition at line 978 of file svn_types.h.

## svn_merge_range_t

typedef struct svn_merge_range_t svn_merge_range_t

Mergeinfo representing a merge of a range of revisions.

Since
  New in 1.5

## svn_version_t

typedef struct svn_version_t svn_version_t

Definition at line 228 of file svn_types.h.

## Enumeration Type Documentation

## svn_recurse_kind

enum svn_recurse_kind

An enum to indicate whether recursion is needed.

Definition at line 452 of file svn_types.h.

## Function Documentation

## svn_commit_info_dup()

svn_commit_info_t * svn_commit_info_dup | ( | const svn_commit_info_t * | src_commit_info,
|  | apr_pool_t * | pool )

Return a deep copy src_commit_info allocated in pool.

Since
  New in 1.4.

## svn_create_commit_info()

svn_commit_info_t * svn_create_commit_info | ( | apr_pool_t * | pool | ) |

Allocate an object of type svn_commit_info_t in pool and return it.

The `revision` field of the new struct is set to SVN_INVALID_REVNUM. All other fields are initialized to `NULL`.

Note
  Any object of the type svn_commit_info_t should be created using this function. This is to provide for extending the svn_commit_info_t in the future.

Since
  New in 1.3.

## svn_depth_from_word()

svn_depth_t svn_depth_from_word | ( | const char * | word | ) |

Return the appropriate depth for depth_str.

word is as returned from svn_depth_to_word(). If depth_str does not represent a recognized depth, return svn_depth_unknown.

Since
  New in 1.5.

## svn_depth_to_word()

const char * svn_depth_to_word | ( | svn_depth_t | depth | ) |

Return a constant string expressing depth as an English word, e.g., "infinity", "immediates", etc.

The string is not localized, as it may be used for client<->server communications.

Since
  New in 1.5.

## svn_dirent_create()

svn_dirent_t * svn_dirent_create | ( | apr_pool_t * | result_pool | ) |

Create a new svn_dirent_t instance with all values initialized to their not-available values.

Since
  New in 1.8.

## svn_dirent_dup()

svn_dirent_t * svn_dirent_dup | ( | const svn_dirent_t * | dirent,
|  | apr_pool_t * | pool )

Return a deep copy of dirent, allocated in pool.

Since
  New in 1.4.

## svn_lock_create()

svn_lock_t * svn_lock_create | ( | apr_pool_t * | pool | ) |

Returns an svn_lock_t, allocated in pool with all fields initialized to NULL values.

Note
  To allow for extending the svn_lock_t structure in the future releases, this function should always be used to allocate the structure.

Since
  New in 1.2.

## svn_lock_dup()

svn_lock_t * svn_lock_dup | ( | const svn_lock_t * | lock,
|  | apr_pool_t * | pool )

Return a deep copy of lock, allocated in pool.

Since
  New in 1.2.

References lock.

## svn_log_changed_path2_create()

svn_log_changed_path2_t * svn_log_changed_path2_create | ( | apr_pool_t * | pool | ) |

Returns an svn_log_changed_path2_t, allocated in pool with all fields initialized to NULL, None or empty values.

Note
  To allow for extending the svn_log_changed_path2_t structure in future releases, this function should always be used to allocate the structure.

Since
  New in 1.6.

## svn_log_changed_path2_dup()

svn_log_changed_path2_t * svn_log_changed_path2_dup | ( | const svn_log_changed_path2_t * | changed_path,
|  | apr_pool_t * | pool )

Return a deep copy of changed_path, allocated in pool.

Since
  New in 1.6.

## svn_log_changed_path_dup()

svn_log_changed_path_t * svn_log_changed_path_dup | ( | const svn_log_changed_path_t * | changed_path,
|  | apr_pool_t * | pool )

Return a deep copy of changed_path, allocated in pool.

Since
  New in 1.3.

Deprecated
  Provided for backward compatibility with the 1.5 API.

## svn_log_entry_create()

svn_log_entry_t * svn_log_entry_create | ( | apr_pool_t * | pool | ) |

Returns an svn_log_entry_t, allocated in pool with all fields initialized to NULL values.

Note
  To allow for extending the svn_log_entry_t structure in future releases, this function should always be used to allocate the structure.

Since
  New in 1.5.

## svn_log_entry_dup()

svn_log_entry_t * svn_log_entry_dup | ( | const svn_log_entry_t * | log_entry,
|  | apr_pool_t * | pool )

Return a deep copy of log_entry, allocated in pool.

The resulting svn_log_entry_t has `changed_paths` set to the same value as `changed_path2`. `changed_paths` will be `NULL` if `changed_paths2` was `NULL`.

Since
  New in 1.6.

## svn_merge_range_contains_rev()

svn_boolean_t svn_merge_range_contains_rev | ( | const svn_merge_range_t * | range,
|  | svn_revnum_t | rev )

Returns true if the changeset committed in revision rev is one of the changesets in the range range.

Since
  New in 1.5.

## svn_merge_range_dup()

svn_merge_range_t * svn_merge_range_dup | ( | const svn_merge_range_t * | range,
|  | apr_pool_t * | pool )

Return a copy of range, allocated in pool.

Since
  New in 1.5.

## svn_mime_type_is_binary()

svn_boolean_t svn_mime_type_is_binary | ( | const char * | mime_type | ) |

Return FALSE iff mime_type is a textual type.

All mime types that start with "text/" are textual, plus some special cases (for example, "image/x-xbitmap").

References mime_type.

## svn_mime_type_validate()

svn_error_t * svn_mime_type_validate | ( | const char * | mime_type,
|  | apr_pool_t * | pool )

Validate mime_type.

If mime_type does not contain a "/", or ends with non-alphanumeric data, return SVN_ERR_BAD_MIME_TYPE, else return success.

Use pool only to find error allocation.

Goal: to match both "foo/bar" and "foo/bar; charset=blah", without being too strict about it, but to disallow mime types that have quotes, newlines, or other garbage on the end, such as might be unsafe in an HTTP header.

References mime_type.

## svn_node_kind_from_word()

svn_node_kind_t svn_node_kind_from_word | ( | const char * | word | ) |

Return the appropriate node_kind for word.

word is as returned from svn_node_kind_to_word(). If word does not represent a recognized kind or is `NULL`, return svn_node_unknown.

Since
  New in 1.6.

## svn_node_kind_to_word()

const char * svn_node_kind_to_word | ( | svn_node_kind_t | kind | ) |

Return a constant string expressing kind as an English word, e.g., "file", "dir", etc.

The string is not localized, as it may be used for client<->server communications. If the kind is not recognized, return "unknown".

Since
  New in 1.6.

References kind.

## svn_revnum_parse()

svn_error_t * svn_revnum_parse | ( | svn_revnum_t * | rev,
|  | const char * | str,
|  | const char ** | endptr )

Parse NULL-terminated C string str as a revision number and store its value in rev.

If endptr is non-NULL, then the address of the first non-numeric character in str is stored in it. If there are no digits in str, then endptr is set (if non-NULL), and the error SVN_ERR_REVNUM_PARSE_FAILURE error is returned. Negative numbers parsed from str are considered invalid, and result in the same error.

Since
  New in 1.5.

## svn_tristate__from_word()

svn_tristate_t svn_tristate__from_word | ( | const char * | word | ) |

Return the appropriate tristate for word.

If word is "true", returns svn_tristate_true; if word is "false", returns svn_tristate_false, for all other values (including NULL) returns svn_tristate_unknown.

Since
  New in 1.7.

## svn_tristate__to_word()

const char * svn_tristate__to_word | ( | svn_tristate_t | tristate | ) |

Return a constant string "true", "false" or NULL representing the value of tristate.

Since
  New in 1.7.

## svn_uuid_generate()

const char * svn_uuid_generate | ( | apr_pool_t * | pool | ) |

Return a formatted Universal Unique IDentifier (UUID) string.

Since
  New in 1.4.