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

📄 ra_dav.h

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 H
📖 第 1 页 / 共 3 页
字号:
                                  svn_log_message_receiver_t receiver,                                  void *receiver_baton,                                  apr_pool_t *pool);svn_error_t *svn_ra_dav__do_check_path(svn_ra_session_t *session,                                       const char *path,                                       svn_revnum_t revision,                                       svn_node_kind_t *kind,                                       apr_pool_t *pool);svn_error_t *svn_ra_dav__do_stat(svn_ra_session_t *session,                                 const char *path,                                 svn_revnum_t revision,                                 svn_dirent_t **dirent,                                 apr_pool_t *pool);svn_error_t *svn_ra_dav__get_file_revs(svn_ra_session_t *session,                                       const char *path,                                       svn_revnum_t start,                                       svn_revnum_t end,                                       svn_ra_file_rev_handler_t handler,                                       void *handler_baton,                                       apr_pool_t *pool);/*** SVN_RA_DAV__LP_*: local properties for RA/DAV**** ra_dav stores properties on the client containing information needed** to operate against the SVN server. Some of this informations is strictly** necessary to store, and some is simply stored as a cached value.*/#define SVN_RA_DAV__LP_NAMESPACE SVN_PROP_WC_PREFIX "ra_dav:"/* store the URL where Activities can be created *//* ### should fix the name to be "activity-coll" at some point */#define SVN_RA_DAV__LP_ACTIVITY_COLL SVN_RA_DAV__LP_NAMESPACE "activity-url"/* store the URL of the version resource (from the DAV:checked-in property) */#define SVN_RA_DAV__LP_VSN_URL          SVN_RA_DAV__LP_NAMESPACE "version-url"/*** SVN_RA_DAV__PROP_*: properties that we fetch from the server**** These are simply symbolic names for some standard properties that we fetch.*/#define SVN_RA_DAV__PROP_BASELINE_COLLECTION    "DAV:baseline-collection"#define SVN_RA_DAV__PROP_CHECKED_IN     "DAV:checked-in"#define SVN_RA_DAV__PROP_VCC            "DAV:version-controlled-configuration"#define SVN_RA_DAV__PROP_VERSION_NAME   "DAV:version-name"#define SVN_RA_DAV__PROP_CREATIONDATE   "DAV:creationdate"#define SVN_RA_DAV__PROP_CREATOR_DISPLAYNAME "DAV:creator-displayname"#define SVN_RA_DAV__PROP_GETCONTENTLENGTH "DAV:getcontentlength"#define SVN_RA_DAV__PROP_BASELINE_RELPATH \    SVN_DAV_PROP_NS_DAV "baseline-relative-path"#define SVN_RA_DAV__PROP_MD5_CHECKSUM SVN_DAV_PROP_NS_DAV "md5-checksum"#define SVN_RA_DAV__PROP_REPOSITORY_UUID SVN_DAV_PROP_NS_DAV "repository-uuid"#define SVN_RA_DAV__PROP_DEADPROP_COUNT SVN_DAV_PROP_NS_DAV "deadprop-count"typedef struct {  /* what is the URL for this resource */  const char *url;  /* is this resource a collection? (from the DAV:resourcetype element) */  int is_collection;  /* PROPSET: NAME -> VALUE (const char * -> const svn_string_t *) */  apr_hash_t *propset;  /* --- only used during response processing --- */  /* when we see a DAV:href element, what element is the parent? */  int href_parent;  apr_pool_t *pool;} svn_ra_dav_resource_t;/* ### WARNING: which_props can only identify properties which props.c   ### knows about. see the elem_definitions[] array. *//* fetch a bunch of properties from the server. */svn_error_t * svn_ra_dav__get_props(apr_hash_t **results,                                    ne_session *sess,                                    const char *url,                                    int depth,                                    const char *label,                                    const ne_propname *which_props,                                    apr_pool_t *pool);/* fetch a single resource's props from the server. */svn_error_t * svn_ra_dav__get_props_resource(svn_ra_dav_resource_t **rsrc,                                             ne_session *sess,                                             const char *url,                                             const char *label,                                             const ne_propname *which_props,                                             apr_pool_t *pool);/* fetch a single resource's starting props from the server. */svn_error_t * svn_ra_dav__get_starting_props(svn_ra_dav_resource_t **rsrc,                                             ne_session *sess,                                             const char *url,                                             const char *label,                                             apr_pool_t *pool);/* Shared helper func: given a public URL which may not exist in HEAD,   use SESS to search up parent directories until we can retrieve a   *RSRC (allocated in POOL) containing a standard set of "starting"   props: {VCC, resourcetype, baseline-relative-path}.     Also return *MISSING_PATH (allocated in POOL), which is the   trailing portion of the URL that did not exist.  If an error   occurs, *MISSING_PATH isn't changed. */svn_error_t * svn_ra_dav__search_for_starting_props(svn_ra_dav_resource_t **rsrc,                                      const char **missing_path,                                      ne_session *sess,                                      const char *url,                                      apr_pool_t *pool);/* fetch a single property from a single resource */svn_error_t * svn_ra_dav__get_one_prop(const svn_string_t **propval,                                       ne_session *sess,                                       const char *url,                                       const char *label,                                       const ne_propname *propname,                                       apr_pool_t *pool);/* Get various Baseline-related information for a given "public" URL.   Given a Neon session SESS and a URL, return whether the URL is a   directory in *IS_DIR.  IS_DIR may be NULL if this flag is unneeded.   REVISION may be SVN_INVALID_REVNUM to indicate that the operation   should work against the latest (HEAD) revision, or whether it should   return information about that specific revision.   If BC_URL is not NULL, then it will be filled in with the URL for   the Baseline Collection for the specified revision, or the HEAD.   If BC_RELATIVE is not NULL, then it will be filled in with a   relative pathname for the baselined resource corresponding to the   revision of the resource specified by URL.   If LATEST_REV is not NULL, then it will be filled in with the revision   that this information corresponds to. Generally, this will be the same   as the REVISION parameter, unless we are working against the HEAD. In   that case, the HEAD revision number is returned.   Allocation for BC_URL->data, BC_RELATIVE->data, and temporary data,   will occur in POOL.   Note: a Baseline Collection is a complete tree for a specified Baseline.   DeltaV baselines correspond one-to-one to Subversion revisions. Thus,   the entire state of a revision can be found in a Baseline Collection.*/svn_error_t *svn_ra_dav__get_baseline_info(svn_boolean_t *is_dir,                                           svn_string_t *bc_url,                                           svn_string_t *bc_relative,                                           svn_revnum_t *latest_rev,                                           ne_session *sess,                                           const char *url,                                           svn_revnum_t revision,                                           apr_pool_t *pool);/* Fetch a baseline resource populated with specific properties.      Given a Neon session SESS and a URL, set *BLN_RSRC to a baseline of   REVISION, populated with whatever properties are specified by   WHICH_PROPS.  To fetch all properties, pass NULL for WHICH_PROPS.   If BC_RELATIVE is not NULL, then it will be filled in with a   relative pathname for the baselined resource corresponding to the   revision of the resource specified by URL.*/svn_error_t *svn_ra_dav__get_baseline_props(svn_string_t *bc_relative,                                            svn_ra_dav_resource_t **bln_rsrc,                                            ne_session *sess,                                            const char *url,                                            svn_revnum_t revision,                                            const ne_propname *which_props,                                            apr_pool_t *pool);/* Fetch the repository's unique Version-Controlled-Configuration url.      Given a Neon session SESS and a URL, set *VCC to the url of the   repository's version-controlled-configuration resource. */svn_error_t *svn_ra_dav__get_vcc(const char **vcc,                                 ne_session *sess,                                 const char *url,                                 apr_pool_t *pool);/* Issue a PROPPATCH request on URL, transmitting PROP_CHANGES (a hash   of const svn_string_t * values keyed on Subversion user-visible   property names) and PROP_DELETES (an array of property names to   delete).  Send any extra request headers in EXTRA_HEADERS. Use POOL   for all allocations.  */svn_error_t *svn_ra_dav__do_proppatch(svn_ra_dav__session_t *ras,                                      const char *url,                                      apr_hash_t *prop_changes,                                      apr_array_header_t *prop_deletes,                                      apr_hash_t *extra_headers,                                      apr_pool_t *pool);extern const ne_propname svn_ra_dav__vcc_prop;extern const ne_propname svn_ra_dav__checked_in_prop;/* send an OPTIONS request to fetch the activity-collection-set */svn_error_t * svn_ra_dav__get_activity_collection  (const svn_string_t **activity_coll,   svn_ra_dav__session_t *ras,   const char *url,   apr_pool_t *pool);/* Call ne_set_request_body_pdovider on REQ with a provider function * that pulls data from BODY_FILE. */svn_error_t *svn_ra_dav__set_neon_body_provider(ne_request *req,                                                apr_file_t *body_file);/** Find a given element in the table of elements. * * The table of XML elements @a table is searched until element identified by * namespace @a nspace and name @a name is found. If no elements are found, * tries to find and return element identified by @c ELEM_unknown. If that is * not found, returns NULL pointer. */const svn_ra_dav__xml_elm_t *svn_ra_dav__lookup_xml_elem(const svn_ra_dav__xml_elm_t *table,                            const char *nspace,                            const char *name);/* Send a METHOD request (e.g., "MERGE", "REPORT", "PROPFIND") to URL * in session SESS, and parse the response.  If BODY is non-null, it is * the body of the request, else use the contents of file BODY_FILE * as the body. * * VALIDATE_CB, STARTELM_CB, and ENDELM_CB are Neon validation, start * element, and end element handlers, respectively, from Neon > 0.24. * BATON is passed to each as userdata. * * SET_PARSER is a callback function which, if non-NULL, is called * with the XML parser and BATON.  This is useful for providers of * validation and element handlers which require access to the parser. * * EXTRA_HEADERS is a hash of (const char *) key/value pairs to be * inserted as extra headers in the request.  Can be NULL. * * STATUS_CODE is an optional 'out' parameter; if non-NULL, then set * *STATUS_CODE to the http status code returned by the server.  This * can be set to a useful value even when the function returns an error * however it is not always set when an error is returned.  So any caller * wishing to check *STATUS_CODE when an error has been returned must * initialise *STATUS_CODE before calling the function. * * If SPOOL_RESPONSE is set, the request response will be cached to * disk in a tmpfile (in full), then read back and parsed. * * Use POOL for any temporary allocation. */svn_error_t *svn_ra_dav__parsed_request(ne_session *sess,                           const char *method,                           const char *url,                           const char *body,                           apr_file_t *body_file,                           void set_parser(ne_xml_parser *parser,                                           void *baton),                           ne_xml_startelm_cb *startelm_cb,                           ne_xml_cdata_cb *cdata_cb,                           ne_xml_endelm_cb *endelm_cb,                           void *baton,                           apr_hash_t *extra_headers,                           int *status_code,                           svn_boolean_t spool_response,                           apr_pool_t *pool);  /* Same as svn_ra_dav__parsed_request, except: * * ELEMENTS is the set of xml elements to recognize in the response. * * The callbacks VALIDATE_CB, STARTELM_CB, and ENDELM_CB, are written * for the Neon <= 0.23 API. */svn_error_t *svn_ra_dav__parsed_request_compat(ne_session *sess,                                  const char *method,                                  const char *url,                                  const char *body,

⌨️ 快捷键说明

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