#include <stdlib.h>
#include <apr.h>
#include <apr_pools.h>
#include <apr_hash.h>
#include <apr_tables.h>
#include <apr_time.h>
Go to the source code of this file.
Data Structures | |
struct | svn_dirent_t |
A general subversion directory entry. More... | |
struct | svn_error_t |
Subversion error object. More... | |
struct | svn_log_changed_path_t |
A structure to represent a path that changed for a log entry. More... | |
Defines | |
#define | APR_ARRAY_IDX(ary, i, type) (((type *)(ary)->elts)[i]) |
index into an apr_array_header_t | |
#define | APR_ARRAY_PUSH(ary, type) (*((type *)apr_array_push (ary))) |
easier array-pushing syntax | |
#define | SVN_IS_VALID_REVNUM(n) ((n) >= 0) |
Valid revision numbers begin at 0. | |
#define | SVN_INVALID_REVNUM ((svn_revnum_t) -1) |
The 'official' invalid revision num. | |
#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) ((svn_revnum_t) atol(str)) |
Convert null-terminated C string str to a revision number. | |
#define | SVN_REVNUM_T_FMT "ld" |
In printf()-style functions, format revision numbers using this. | |
#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 | TRUE 1 |
uhh... | |
#define | FALSE 0 |
uhh... | |
#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_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_STREAM_CHUNK_SIZE 102400 |
The maximum amount we (ideally) hold in memory at a time 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. | |
Typedefs | |
typedef svn_error_t | svn_error_t |
Subversion error object. | |
typedef long int | svn_revnum_t |
A revision number. | |
typedef apr_int64_t | svn_filesize_t |
The size of a file in the Subversion FS. | |
typedef int | svn_boolean_t |
YABT: Yet Another Boolean Type. | |
typedef svn_dirent_t | svn_dirent_t |
A general subversion directory entry. | |
typedef svn_log_changed_path_t | svn_log_changed_path_t |
A structure to represent a path that changed for a log entry. | |
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) |
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_commit_callback_t )(svn_revnum_t new_revision, const char *date, const char *author, void *baton) |
Callback function type for commits. | |
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. | |
Enumerations | |
enum | svn_node_kind_t |
The various types of nodes in the Subversion filesystem. | |
enum | svn_recurse_kind |
An enum to indicate whether recursion is needed. | |
Functions | |
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. |
Definition in file svn_types.h.
|
uhh... false Definition at line 141 of file svn_types.h. |
|
The maximum amount we (ideally) hold in memory at a time when processing a stream of data. For example, when copying data from one stream to another, do it in blocks of this size; also, the standard size of one svndiff window; etc. Definition at line 324 of file svn_types.h. |
|
uhh... true Definition at line 136 of file svn_types.h. |
|
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 Definition at line 368 of file svn_types.h. |
|
Callback function type for commits. When a commit succeeds, an instance of this is invoked on the new_revision, date, and author of the commit, along with the baton closure. Definition at line 310 of file svn_types.h. |
|
The callback invoked by log message loopers, such as This function is invoked once on each log message, in the order determined by the caller (see above-mentioned functions).
baton, revision, author, date, and message are what you think they are. Any of author, date, or message may be
If date is neither null nor the empty string, it was generated by
If changed_paths is non-@c NULL, then it contains as keys every path committed in revision; the values are (
### The only reason changed_paths is not qualified with `const' is that we usually want to loop over it, and Use pool for all 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.) Definition at line 295 of file svn_types.h. |
|
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"). |
|
Validate mime_type.
If mime_type does not contain a "/", or ends with non-alphanumeric data, return 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. |