[SR-Dev] git:sip-router: str: kamailio str_init compatibility macro

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Nov 21 03:10:23 CET 2008


Module: sip-router
Branch: andrei/fixups
Commit: 8eb94bf9288083732bcab871c23be1a82498e4b7
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8eb94bf9288083732bcab871c23be1a82498e4b7

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Fri Nov 21 01:03:51 2008 +0100

str: kamailio str_init compatibility macro

---

 str.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/str.h b/str.h
index 02a8d99..10be113 100644
--- a/str.h
+++ b/str.h
@@ -84,6 +84,9 @@ typedef struct _str str;
  */
 #define STR_STATIC_INIT(v) {(v), sizeof(v) - 1}
 
+/* kamailio compatibility macro (same thing as above) */
+#define str_init(v) STR_STATIC_INIT(v)
+
 /** Initializes ::str string with NULL pointer and zero length.
  * This is a convenience macro that can be used to initialize
  * ::str string variable to NULL string with zero length:




More information about the sr-dev mailing list