[sr-dev] PARAM_STR vs STR_PARAM

Alekzander Spiridonov alekz at li.ru
Wed Jul 9 11:00:54 CEST 2014


Hi list,

While going through mod_init's and finding things like
rtpp_table_name.len = strlen(rtpp_table_name.s);

I became curious if using of deprecated STR_PARAM in new modules is done on
purpose. Why not using PARAM_STR for string module parameters?

Quote from sr_module.h:
#define PARAM_STRING     (1U<<0)  /**< String (char *) parameter type */
#define PARAM_STR        (1U<<2)  /**< struct str parameter type */
#define STR_PARAM PARAM_STRING

P.S.: That's not only about curiosity but to avoid any bugs in my kamailio
extensions.
-- 
Best regards,
Alekzander Spiridonov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140709/5e05b1db/attachment.html>


More information about the sr-dev mailing list