|  | Subversion
    | 
 
 
 
Go to the documentation of this file.
   32 #include <apr_pools.h> 
   34 #include <apr_tables.h> 
   35 #include <apr_file_io.h>   
   46 #define SVN_KEYLINE_MAXLEN 100 
   66 #define SVN_HASH_TERMINATOR "END" 
   82                const char *terminator,
 
   96                 const char *terminator,
 
  109                           const char *terminator,
 
  124                            const char *terminator,
 
  150                apr_file_t *destfile,
 
  166     svn_hash_diff_key_both,
 
  178   (
const void *key, apr_ssize_t klen,
 
  204               void *diff_func_baton,
 
  239                            const apr_array_header_t *keys,
 
  248 #define SVN_HASH__GETS_SETS 
  251 #ifdef SVN_HASH__GETS_SETS 
  253 svn_hash__gets_debug(apr_hash_t *ht, 
const char *key);
 
  255 #define svn_hash_gets(ht, key) \ 
  256             svn_hash__gets_debug(ht, key) 
  262 #define svn_hash_gets(ht, key) \ 
  263             apr_hash_get(ht, key, APR_HASH_KEY_STRING) 
  266 #ifdef SVN_HASH__GETS_SETS 
  268 svn_hash__sets_debug(apr_hash_t *ht, 
const char *key, 
const void *value);
 
  270 #define svn_hash_sets(ht, key, val) \ 
  271             svn_hash__sets_debug(ht, key, val) 
  277 #define svn_hash_sets(ht, key, val) \ 
  278             apr_hash_set(ht, key, APR_HASH_KEY_STRING, val) 
  
svn_error_t * svn_hash_write2(apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool)
Dump hash to stream.
svn_error_t * svn_hash_read_incremental(apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool)
Similar to svn_hash_read2(), but allows stream to contain deletion lines which remove entries from ha...
svn_hash_diff_key_status
Hash key status indicator for svn_hash_diff_func_t.
struct svn_stream_t svn_stream_t
An abstract stream of bytes–either incoming or outgoing or both.
svn_error_t *(* svn_hash_diff_func_t)(const void *key, apr_ssize_t klen, enum svn_hash_diff_key_status status, void *baton)
Function type for expressing a key's status between two hash tables.
svn_error_t * svn_hash_write(apr_hash_t *hash, apr_file_t *destfile, apr_pool_t *pool)
This function behaves like svn_hash_write2(), but it only works on an apr_file_t output,...
svn_error_t * svn_hash_read(apr_hash_t *hash, apr_file_t *srcfile, apr_pool_t *pool)
This function behaves like svn_hash_read2(), but it only works on an apr_file_t input,...
#define SVN_DEPRECATED
Macro used to mark deprecated functions.
svn_error_t * svn_hash_keys(apr_array_header_t **array, apr_hash_t *hash, apr_pool_t *pool)
Return the keys to hash in *array.
svn_error_t * svn_hash_from_cstring_keys(apr_hash_t **hash, const apr_array_header_t *keys, apr_pool_t *pool)
Set *hash to a new hash whose keys come from the items in keys (an array of const char * items),...
General file I/O for Subversion.
svn_error_t * svn_hash_read2(apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool)
Read a hash table from stream, storing the resultants names and values in hash.
svn_error_t * svn_hash_write_incremental(apr_hash_t *hash, apr_hash_t *oldhash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool)
Similar to svn_hash_write2(), but only writes out entries for keys which differ between hash and oldh...
revision::number status(context &ctx, const char *path, const revision &rev, depth depth, status_flags flags, status_callback callback)
Perform a status operation on path.
svn_error_t * svn_hash_diff(apr_hash_t *hash_a, apr_hash_t *hash_b, svn_hash_diff_func_t diff_func, void *diff_func_baton, apr_pool_t *pool)
Take the diff of two hashtables.