Main Page   Modules   Data Structures   File List   Data Fields  

reading and writing hashtables to disk

Reading/writing hashtables to disk. More...

Defines

#define SVN_HASH_TERMINATOR   "END"
 
Since:
New in 1.1.
More...



Functions

svn_error_tsvn_hash_read2 (apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool)
 
Since:
New in 1.1.
More...


svn_error_tsvn_hash_write2 (apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool)
 
Since:
New in 1.1.
More...


svn_error_tsvn_hash_read_incremental (apr_hash_t *hash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool)
 
Since:
New in 1.1.
More...


svn_error_tsvn_hash_write_incremental (apr_hash_t *hash, apr_hash_t *oldhash, svn_stream_t *stream, const char *terminator, apr_pool_t *pool)
 
Since:
New in 1.1.
More...


svn_error_tsvn_hash_read (apr_hash_t *hash, apr_file_t *srcfile, apr_pool_t *pool)
svn_error_tsvn_hash_write (apr_hash_t *hash, apr_file_t *destfile, apr_pool_t *pool)

Detailed Description

Reading/writing hashtables to disk.


Define Documentation

#define SVN_HASH_TERMINATOR   "END"
 

Since:
New in 1.1.

The conventional terminator for hash dumps.

Definition at line 56 of file svn_hash.h.


Function Documentation

svn_error_t* svn_hash_read apr_hash_t *    hash,
apr_file_t *    srcfile,
apr_pool_t *    pool
 

Deprecated:
Provided for backward compatibility with the 1.0 API.
This function behaves like svn_hash_read2, but it only works on an apr_file_t input, empty files are accepted, and the hash is expected to be terminated with a line containing "END" or "PROPS-END".

svn_error_t* svn_hash_read2 apr_hash_t *    hash,
svn_stream_t   stream,
const char *    terminator,
apr_pool_t *    pool
 

Since:
New in 1.1.

Read a hash table from stream, storing the resultants names and values in hash. Use a pool for all allocations. hash will have const char * keys and svn_string_t * values. If terminator is NULL, expect the hash to be terminated by the end of the stream; otherwise, expect the hash to be terminated by a line containing terminator. Pass SVN_HASH_TERMINATOR to use the conventional terminator "END".

svn_error_t* svn_hash_read_incremental apr_hash_t *    hash,
svn_stream_t   stream,
const char *    terminator,
apr_pool_t *    pool
 

Since:
New in 1.1.

Similar to svn_hash_read2(), but allows stream to contain deletion lines which remove entries from hash as well as adding to it.

svn_error_t* svn_hash_write apr_hash_t *    hash,
apr_file_t *    destfile,
apr_pool_t *    pool
 

Deprecated:
Provided for backward compatibility with the 1.0 API.
This function behaves like svn_hash_write2, but it only works on an apr_file_t output, and the terminator is always "END".

svn_error_t* svn_hash_write2 apr_hash_t *    hash,
svn_stream_t   stream,
const char *    terminator,
apr_pool_t *    pool
 

Since:
New in 1.1.

Dump hash to stream. Use pool for all allocations. hash has const char * keys and svn_string_t * values. If terminator is not NULL, terminate the hash with a line containing terminator.

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
 

Since:
New in 1.1.

Similar to svn_hash_write2(), but only writes out entries for keys which differ between hash and oldhash, and also writes out deletion lines for keys which are present in oldhash but not in hash.


Generated on Wed Aug 31 01:47:57 2005 for Subversion by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002