summaryrefslogtreecommitdiffstats
path: root/lib/qfstring.h
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-08 19:51:10 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-08 19:51:10 +0100
commit83447a051fbcc88b33fcea6670520687668d3ba1 (patch)
treef3be10368d9fc6c605c1ec351bc7c1f2c0c61ff0 /lib/qfstring.h
parent17b711e6e4a4d5ce3728a07890434d890ebb76b4 (diff)
downloadquagga-83447a051fbcc88b33fcea6670520687668d3ba1.tar.bz2
quagga-83447a051fbcc88b33fcea6670520687668d3ba1.tar.xz
New functions for error numbers and addresses in messages.
Implemented less onerous ways of including descriptions of errors and IP addresses in logging and other messages. Implemented mapping of error numbers to error names, which is generally more meaningful.
Diffstat (limited to 'lib/qfstring.h')
-rw-r--r--lib/qfstring.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/qfstring.h b/lib/qfstring.h
index fbc83fe8..83caa13d 100644
--- a/lib/qfstring.h
+++ b/lib/qfstring.h
@@ -96,11 +96,12 @@ enum pf_flags
*/
extern void qfs_init(qf_str qfs, char* str, size_t size) ;
+extern void qfs_init_as_is(qf_str qfs, char* str, size_t size) ;
extern void qfs_term(qf_str qfs, const char* src) ;
Inline int qfs_len(qf_str qfs) ;
-Inline void* qfs_end(qf_str qfs) ;
+Inline void* qfs_ptr(qf_str qfs) ;
Inline int qfs_left(qf_str qfs) ;
extern void qfs_append(qf_str qfs, const char* src) ;
@@ -139,7 +140,7 @@ qfs_len(qf_str qfs)
* Address of the terminating '\0'.
*/
Inline void*
-qfs_end(qf_str qfs)
+qfs_ptr(qf_str qfs)
{
return qfs->ptr ;
} ;