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

📄 svn_ra_svn.h

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 H
📖 第 1 页 / 共 2 页
字号:
 * Normally this shouldn't be necessary, since the write buffer is flushed * when a read is attempted. */svn_error_t *svn_ra_svn_flush(svn_ra_svn_conn_t *conn, apr_pool_t *pool);/** Write a tuple, using a printf-like interface. * * The format string @a fmt may contain: * *<pre> *   Spec  Argument type         Item type *   ----  --------------------  --------- *   n     apr_uint64_t          Number *   r     svn_revnum_t          Number *   s     const svn_string_t *  String *   c     const char *          String *   w     const char *          Word *   b     svn_boolean_t         Word ("true" or "false") *   (                           Begin tuple *   )                           End tuple *   ?                           Remaining elements optional *   ! (at beginning or end)     Suppress opening or closing of tuple * </pre> * * Inside the optional part of a tuple, 'r' values may be @c * SVN_INVALID_REVNUM, 'n' values may be * SVN_RA_SVN_UNSPECIFIED_NUMBER, and 's', 'c', and 'w' values may be * @c NULL; in these cases no data will be written.  'b' and '(' may * not appear in the optional part of a tuple.  Either all or none of * the optional values should be valid. * * (If we ever have a need for an optional boolean value, we should * invent a 'B' specifier which stores a boolean into an int, using -1 * for unspecified.  Right now there is no need for such a thing.) * * Use the '!' format specifier to write partial tuples when you have * to transmit an array or other unusual data.  For example, to write * a tuple containing a revision, an array of words, and a boolean: *   SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "r(!", rev)); *   for (i = 0; i < n; i++) *     SVN_ERR(svn_ra_svn_write_word(conn, pool, words[i])); *   SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "!)b", flag)); */svn_error_t *svn_ra_svn_write_tuple(svn_ra_svn_conn_t *conn, apr_pool_t *pool,                                    const char *fmt, ...);/** Read an item from the network into @a *item. */svn_error_t *svn_ra_svn_read_item(svn_ra_svn_conn_t *conn, apr_pool_t *pool,                                  svn_ra_svn_item_t **item);/** Scan data on @a conn until we find something which looks like the * beginning of an svn server greeting (an open paren followed by a * whitespace character).  This function is appropriate for beginning * a client connection opened in tunnel mode, since people's dotfiles * sometimes write output to stdout.  It may only be called at the * beginning of a client connection. */svn_error_t *svn_ra_svn_skip_leading_garbage(svn_ra_svn_conn_t *conn,                                             apr_pool_t *pool);/** Parse an array of @c svn_sort__item_t structures as a tuple, using a * printf-like interface.  The format string @a fmt may contain: * *<pre> *   Spec  Argument type          Item type *   ----  --------------------   --------- *   n     apr_uint64_t *         Number *   r     svn_revnum_t *         Number *   s     svn_string_t **        String *   c     const char **          String *   w     const char **          Word *   b     svn_boolean_t *        Word ("true" or "false") *   l     apr_array_header_t **  List *   (                            Begin tuple *   )                            End tuple *   ?                            Tuple is allowed to end here *</pre> * * Note that a tuple is only allowed to end precisely at a '?', or at * the end of the specification.  So if @a fmt is "c?cc" and @a list * contains two elements, an error will result. * * If an optional part of a tuple contains no data, 'r' values will be * set to @c SVN_INVALID_REVNUM, 'n' values will be set to * SVN_RA_SVN_UNSPECIFIED_NUMBER, and 's', 'c', 'w', and 'l' values * will be set to @c NULL.  'b' may not appear inside an optional * tuple specification. */svn_error_t *svn_ra_svn_parse_tuple(apr_array_header_t *list,                                    apr_pool_t *pool,                                    const char *fmt, ...);/** Read a tuple from the network and parse it as a tuple, using the * format string notation from svn_ra_svn_parse_tuple(). */svn_error_t *svn_ra_svn_read_tuple(svn_ra_svn_conn_t *conn, apr_pool_t *pool,                                   const char *fmt, ...);/** Read a command response from the network and parse it as a tuple, using  * the format string notation from svn_ra_svn_parse_tuple(). */svn_error_t *svn_ra_svn_read_cmd_response(svn_ra_svn_conn_t *conn,                                          apr_pool_t *pool,                                          const char *fmt, ...);/** Accept commands over the network and handle them according to @a * commands.  Command handlers will be passed @a conn, a subpool of @a * pool (cleared after each command is handled), the parameters of the * command, and @a baton.  Commands will be accepted until a * terminating command is received (a command with "terminate" set in * the command table).  If a command handler returns an error wrapped * in SVN_RA_SVN_CMD_ERR (see the @c SVN_CMD_ERR macro), the error * will be reported to the other side of the connection and the * command loop will continue; any other kind of error (typically a * network or protocol error) is passed through to the caller. */svn_error_t *svn_ra_svn_handle_commands(svn_ra_svn_conn_t *conn,                                        apr_pool_t *pool,                                        const svn_ra_svn_cmd_entry_t *commands,                                        void *baton);/** Write a command over the network, using the same format string notation  * as svn_ra_svn_write_tuple(). */svn_error_t *svn_ra_svn_write_cmd(svn_ra_svn_conn_t *conn, apr_pool_t *pool,                                  const char *cmdname, const char *fmt, ...);/** Write a successful command response over the network, using the * same format string notation as svn_ra_svn_write_tuple().  Do not use * partial tuples with this function; if you need to use partial * tuples, just write out the "success" and argument tuple by hand. */svn_error_t *svn_ra_svn_write_cmd_response(svn_ra_svn_conn_t *conn,                                           apr_pool_t *pool,                                           const char *fmt, ...);/** Write an unsuccessful command response over the network. */svn_error_t *svn_ra_svn_write_cmd_failure(svn_ra_svn_conn_t *conn,                                          apr_pool_t *pool, svn_error_t *err);/** Set @a *editor and @a *edit_baton to an editor which will pass editing * operations over the network, using @a conn and @a pool. * * Upon successful completion of the edit, the editor will invoke @a callback  * with @a callback_baton as an argument. */void svn_ra_svn_get_editor(const svn_delta_editor_t **editor,                           void **edit_baton, svn_ra_svn_conn_t *conn,                           apr_pool_t *pool, svn_ra_svn_edit_callback callback,                           void *callback_baton);/** Receive edit commands over the network and use them to drive @a editor * with @a edit_baton.  On return, @a *aborted will be set if the edit was * aborted.  The drive can be terminated with a finish-replay command only * if @a for_replay is true. */svn_error_t *svn_ra_svn_drive_editor2(svn_ra_svn_conn_t *conn,                                      apr_pool_t *pool,                                      const svn_delta_editor_t *editor,                                      void *edit_baton,                                      svn_boolean_t *aborted,                                      svn_boolean_t for_replay);/** Like svn_ra_svn_drive_editor2, but with @a for_replay always FALSE. */svn_error_t *svn_ra_svn_drive_editor(svn_ra_svn_conn_t *conn, apr_pool_t *pool,                                     const svn_delta_editor_t *editor,                                     void *edit_baton,                                     svn_boolean_t *aborted);/** This function is only intended for use by svnserve. * * Perform CRAM-MD5 password authentication.  On success, return * SVN_NO_ERROR with *user set to the username and *success set to * TRUE.  On an error which can be reported to the client, report the * error and return SVN_NO_ERROR with *success set to FALSE.  On * communications failure, return an error. */svn_error_t *svn_ra_svn_cram_server(svn_ra_svn_conn_t *conn, apr_pool_t *pool,                                    svn_config_t *pwdb, const char **user,                                    svn_boolean_t *success);/** * Get libsvn_ra_svn version information. * @since New in 1.1. */const svn_version_t *svn_ra_svn_version(void);#ifdef __cplusplus}#endif /* __cplusplus */#endif  /* SVN_RA_SVN_H */

⌨️ 快捷键说明

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