⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svn_client.h

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 H
📖 第 1 页 / 共 5 页
字号:
/** * @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 * * @file svn_client.h * @brief Public interface for libsvn_client. *//*** Includes ***//*  * Requires:  The working copy library and repository access library. * Provides:  Broad wrappers around working copy library functionality. * Used By:   Client programs. */#ifndef SVN_CLIENT_H#define SVN_CLIENT_H#include <apr_tables.h>#include "svn_types.h"#include "svn_wc.h"#include "svn_string.h"#include "svn_error.h"#include "svn_opt.h"#include "svn_version.h"#include "svn_ra.h"#include "svn_diff.h"#ifdef __cplusplusextern "C" {#endif /* __cplusplus *//* ### TODO:  Multiple Targets    - Up for debate:  an update on multiple targets is *not* atomic.    Right now, svn_client_update only takes one path.  What's    debatable is whether this should ever change.  On the one hand,    it's kind of losing to have the client application loop over    targets and call svn_client_update() on each one;  each call to    update initializes a whole new repository session (network    overhead, etc.)  On the other hand, it's a very simple    implementation, and allows for the possibility that different    targets may come from different repositories.  *//** * Get libsvn_client version information. * * @since New in 1.1. */const svn_version_t *svn_client_version(void);/*** Authentication stuff ***//*  The new authentication system allows the RA layer to "pull"    information as needed from libsvn_client.  See svn_ra.h *//** Create and return @a *provider, an authentication provider of type * svn_auth_cred_simple_t that gets information by prompting the user * with @a prompt_func and @a prompt_baton.  Allocate @a *provider in * @a pool. * * If both @c SVN_AUTH_PARAM_DEFAULT_USERNAME and * @c SVN_AUTH_PARAM_DEFAULT_PASSWORD are defined as runtime * parameters in the @c auth_baton, then @a *provider will return the * default arguments when svn_auth_first_credentials() is called.  If * svn_auth_first_credentials() fails, then @a *provider will * re-prompt @a retry_limit times (via svn_auth_next_credentials()). * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_simple_prompt_provider  (svn_auth_provider_object_t **provider,   svn_auth_simple_prompt_func_t prompt_func,   void *prompt_baton,   int retry_limit,   apr_pool_t *pool);/** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_username_t that gets information by prompting the * user with @a prompt_func and @a prompt_baton.  Allocate @a *provider * in @a pool. * * If @c SVN_AUTH_PARAM_DEFAULT_USERNAME is defined as a runtime * parameter in the @c auth_baton, then @a *provider will return the * default argument when svn_auth_first_credentials() is called.  If * svn_auth_first_credentials() fails, then @a *provider will * re-prompt @a retry_limit times (via svn_auth_next_credentials()). * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_username_prompt_provider  (svn_auth_provider_object_t **provider,   svn_auth_username_prompt_func_t prompt_func,   void *prompt_baton,   int retry_limit,   apr_pool_t *pool);/** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_simple_t that gets/sets information from the user's * ~/.subversion configuration directory.  Allocate @a *provider in * @a pool. *   * If a default username or password is available, @a *provider will * honor them as well, and return them when * svn_auth_first_credentials() is called.  (see @c * SVN_AUTH_PARAM_DEFAULT_USERNAME and @c * SVN_AUTH_PARAM_DEFAULT_PASSWORD).  * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_simple_provider(svn_auth_provider_object_t **provider,                                    apr_pool_t *pool);#if defined(WIN32) || defined(DOXYGEN)/** * Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_simple_t that gets/sets information from the user's * ~/.subversion configuration directory.  Allocate @a *provider in * @a pool. * * This is like svn_client_get_simple_provider(), except that, when * running on Window 2000 or newer (or any other Windows version that * includes the CryptoAPI), the provider encrypts the password before * storing it to disk. On earlier versions of Windows, the provider * does nothing. * * @since New in 1.2. * @note This function is only available on Windows. * * @note An administrative password reset may invalidate the account's * secret key. This function will detect that situation and behave as * if the password were not cached at all. * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_windows_simple_provider  (svn_auth_provider_object_t **provider,   apr_pool_t *pool);#endif /* WIN32 || DOXYGEN *//** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_username_t that gets/sets information from a user's * ~/.subversion configuration directory.  Allocate @a *provider in * @a pool. * * If a default username is available, @a *provider will honor it, * and return it when svn_auth_first_credentials() is called.  (see * @c SVN_AUTH_PARAM_DEFAULT_USERNAME).  * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_username_provider(svn_auth_provider_object_t **provider,                                      apr_pool_t *pool);/** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_ssl_server_trust_t, allocated in @a pool. * * @a *provider retrieves its credentials from the configuration * mechanism.  The returned credential is used to override SSL * security on an error. * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_ssl_server_trust_file_provider  (svn_auth_provider_object_t **provider,   apr_pool_t *pool);/** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_ssl_client_cert_t, allocated in @a pool. * * @a *provider retrieves its credentials from the configuration * mechanism.  The returned credential is used to load the appropriate * client certificate for authentication when requested by a server. * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_ssl_client_cert_file_provider  (svn_auth_provider_object_t **provider,   apr_pool_t *pool);/** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_ssl_client_cert_pw_t, allocated in @a pool. * * @a *provider retrieves its credentials from the configuration * mechanism.  The returned credential is used when a loaded client * certificate is protected by a passphrase. * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_ssl_client_cert_pw_file_provider  (svn_auth_provider_object_t **provider,   apr_pool_t *pool);/** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_ssl_server_trust_t, allocated in @a pool.   * * @a *provider retrieves its credentials by using the @a prompt_func * and @a prompt_baton.  The returned credential is used to override * SSL security on an error. * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_ssl_server_trust_prompt_provider  (svn_auth_provider_object_t **provider,   svn_auth_ssl_server_trust_prompt_func_t prompt_func,   void *prompt_baton,   apr_pool_t *pool);/** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_ssl_client_cert_t, allocated in @a pool. * * @a *provider retrieves its credentials by using the @a prompt_func * and @a prompt_baton.  The returned credential is used to load the * appropriate client certificate for authentication when requested by * a server.  The prompt will be retried @a retry_limit times. * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_ssl_client_cert_prompt_provider  (svn_auth_provider_object_t **provider,   svn_auth_ssl_client_cert_prompt_func_t prompt_func,   void *prompt_baton,   int retry_limit,   apr_pool_t *pool);/** Create and return @a *provider, an authentication provider of type @c * svn_auth_cred_ssl_client_cert_pw_t, allocated in @a pool. * * @a *provider retrieves its credentials by using the @a prompt_func * and @a prompt_baton.  The returned credential is used when a loaded * client certificate is protected by a passphrase.  The prompt will * be retried @a retry_limit times. * * @deprecated Provided for backward compatibility with the 1.3 API. */void svn_client_get_ssl_client_cert_pw_prompt_provider  (svn_auth_provider_object_t **provider,   svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func,   void *prompt_baton,   int retry_limit,   apr_pool_t *pool);/** This is a structure which stores a filename and a hash of property * names and values. */typedef struct svn_client_proplist_item_t{  /** The name of the node on which these properties are set. */  svn_stringbuf_t *node_name;    /** A hash of (const char *) property names, and (svn_string_t *) property   * values. */  apr_hash_t *prop_hash;} svn_client_proplist_item_t;/**  * Return a duplicate of @a item, allocated in @a pool. No part of the new * structure will be shared with @a item. * * @since New in 1.3. */svn_client_proplist_item_t *svn_client_proplist_item_dup(const svn_client_proplist_item_t *item,                             apr_pool_t *pool);/** Information about commits passed back to client from this module. * * @deprecated Provided for backward compatibility with the 1.2 API. */typedef struct svn_client_commit_info_t{  /** just-committed revision. */  svn_revnum_t revision;  /** server-side date of the commit. */  const char *date;  /** author of the commit. */  const char *author;} svn_client_commit_info_t;/** * @name Commit state flags * @brief State flags for use with the @c svn_client_commit_item2_t structure * (see the note about the namespace for that structure, which also * applies to these flags). * @{ */#define SVN_CLIENT_COMMIT_ITEM_ADD         0x01#define SVN_CLIENT_COMMIT_ITEM_DELETE      0x02#define SVN_CLIENT_COMMIT_ITEM_TEXT_MODS   0x04#define SVN_CLIENT_COMMIT_ITEM_PROP_MODS   0x08#define SVN_CLIENT_COMMIT_ITEM_IS_COPY     0x10/** @since New in 1.2. */#define SVN_CLIENT_COMMIT_ITEM_LOCK_TOKEN  0x20/** @} *//** The commit candidate structure. * * @since New in 1.3. */typedef struct svn_client_commit_item2_t{  /** absolute working-copy path of item */  const char *path;  /** node kind (dir, file) */  svn_node_kind_t kind;  /** commit URL for this item */  const char *url;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -