... | ... |
@@ -84,6 +84,9 @@ typedef struct _str str; |
84 | 84 |
*/ |
85 | 85 |
#define STR_STATIC_INIT(v) {(v), sizeof(v) - 1} |
86 | 86 |
|
87 |
+/* kamailio compatibility macro (same thing as above) */ |
|
88 |
+#define str_init(v) STR_STATIC_INIT(v) |
|
89 |
+ |
|
87 | 90 |
/** Initializes ::str string with NULL pointer and zero length. |
88 | 91 |
* This is a convenience macro that can be used to initialize |
89 | 92 |
* ::str string variable to NULL string with zero length: |