<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I prefer one per module, because it is easier to review and keeps
the history cleaner for that module.<br>
<br>
Thanks,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 18/07/14 10:45, Alekzander
Spiridonov wrote:<br>
</div>
<blockquote
cite="mid:CA+=mPaofh44kv3UxG3F03qyzrUGEHfjibd+TZ_oF1dQ4eDowXQ@mail.gmail.com"
type="cite">
<div dir="ltr">Should I submit patch per module or one for all?
Actually there are numerous cases in kamailio/modules/*<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-07-17 22:58 GMT+04:00
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,
<div>
<div class="h5"><br>
<br>
On 09/07/14 11:00, Alekzander Spiridonov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
<br>
While going through mod_init's and finding things like<br>
rtpp_table_name.len = strlen(rtpp_table_name.s);<br>
<br>
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?<br>
<br>
Quote from sr_module.h:<br>
#define PARAM_STRING (1U<<0) /**< String
(char *) parameter type */<br>
#define PARAM_STR (1U<<2) /**< struct
str parameter type */<br>
#define STR_PARAM PARAM_STRING<br>
<br>
P.S.: That's not only about curiosity but to avoid any
bugs in my kamailio extensions.<br>
</blockquote>
</div>
</div>
Indeed PARAM_STR should be used if the value of the
parameter needs to be stored in a str structure.<br>
<br>
PARAM_STR was introduced by SER developers before joining
back with Kamailio source code, so many developers are not
aware of it.<br>
<br>
We should review and migrate in such cases.<br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla - <a moz-do-not-send="true"
href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a moz-do-not-send="true"
href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a>
- <a moz-do-not-send="true"
href="http://www.linkedin.com/in/miconda"
target="_blank">http://www.linkedin.com/in/miconda</a><br>
<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-dev@lists.sip-router.org"
target="_blank">sr-dev@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</font></span></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div>
<div>Best regards,<br>
Alekzander Spiridonov</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>