diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-03 12:39:13 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-03 12:39:13 +0000 |
commit | 53c1a7305e119b397c3e80acfdd4a6aecc7ce121 (patch) | |
tree | a2236297ee385d7b06e347fd9c3bd9c581f2b957 /stringbuf.h | |
parent | 4c0e6b5073d9778688f4ef995bb3198ce9082c50 (diff) | |
download | rsyslog-53c1a7305e119b397c3e80acfdd4a6aecc7ce121.tar.gz rsyslog-53c1a7305e119b397c3e80acfdd4a6aecc7ce121.tar.xz rsyslog-53c1a7305e119b397c3e80acfdd4a6aecc7ce121.zip |
added support for dynamic file names in selector lines. Can now be created
with templates.
Diffstat (limited to 'stringbuf.h')
-rwxr-xr-x | stringbuf.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/stringbuf.h b/stringbuf.h index c8359ab8..5f9a0879 100755 --- a/stringbuf.h +++ b/stringbuf.h @@ -72,13 +72,22 @@ rsRetVal rsCStrTruncate(rsCStrObj *pThis, int nTrunc); rsRetVal rsCStrTrimTrailingWhiteSpace(rsCStrObj *pThis);
/**
- * Append a string to the buffer.
+ * Append a string to the buffer. For performance reasons,
+ * use rsCStrAppenStrWithLen() if you know the length.
*
* \param psz pointer to string to be appended. Must not be NULL.
*/
rsRetVal rsCStrAppendStr(rsCStrObj *pThis, char* psz);
/**
+ * Append a string to the buffer.
+ *
+ * \param psz pointer to string to be appended. Must not be NULL.
+ * \param iStrLen the length of the string pointed to by psz
+ */
+rsRetVal rsCStrAppendStrWithLen(rsCStrObj *pThis, char* psz, size_t iStrLen);
+
+/**
* Set a new allocation incremet. This will influence
* the allocation the next time the string will be expanded.
* It can be set and changed at any time. If done immediately
|