[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-dev
Subject:    Re: [asterisk-dev] Janitor project ast_module_load_result ??
From:       "Eliel Sardanons" <eliel () eliel ! com ! ar>
Date:       2007-10-26 18:29:51
Message-ID: 7fab5e3b0710261129m69654cb6t1f6b0fbbb45fdfda () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


The issue opened for this "janitor" is: 0011096

Thanks

On 10/25/07, Eliel Sardanons <eliel@eliel.com.ar> wrote:
>
> Ok Moises,
>            I will submit the first patch and open an issue to start
> working on this janitor.
>
>
>
> On 10/25/07, Moises Silva < moises.silva@gmail.com> wrote:
> >
> > Eliel,
> >
> > Let us know if you open a bug in mantis for this in order to put
> > changes there as well.
> >
> > Thanks
> >
> > Moy
> >
> > On 10/25/07, Eliel Sardanons <eliel@eliel.com.ar> wrote:
> > > This are load_module()'s return values, I am not changing
> > nothing,  this is
> > > just the way "it should be", read chan_sip.c  and you will notice how
> > > 'return AST_MODULE_LOAD_SUCCESS' is being used.
> > > But if you take a look at some modules (chan_gtalk.c), they don't use
> > this
> > > return values defined in the enum, they use just the values "0,
> > -1,1,2" and
> > > we should change everything to start using the names
> > > AST_MODULE_LOAD_SUCCESS, *_DECLIE, *_SKIP, etc.
> > >
> > > Sample:
> > > - return 0;
> > > + return AST_MODULE_LOAD_SUCCESS;
> > >
> > >
> > >
> > > On 10/25/07, Tzafrir Cohen <tzafrir.cohen@xorcom.com > wrote:
> > > > On Thu, Oct 25, 2007 at 02:09:02PM -0300, Eliel Sardanons wrote:
> > > > > I think we could start a new janitor project to replace every
> > 'return'
> > > on
> > > > > load_module's with:
> > > > >
> > > > > enum ast_module_load_result {
> > > > >         AST_MODULE_LOAD_SUCCESS = 0,    /*!< Module loaded and
> > > configured */
> > > > >         AST_MODULE_LOAD_DECLINE = 1,    /*!< Module is not
> > configured */
> > > > >         AST_MODULE_LOAD_SKIP = 2,       /*!< Module was skipped
> > for some
> > > > > reason */
> > > > >         AST_MODULE_LOAD_FAILURE = -1,   /*!< Module could not be
> > loaded
> > > > > properly */
> > > > > };
> > > >
> > > > What do those return values mean? Does a return value of -1 mean
> > that
> > > > Asterisk should die?
> > > >
> > > > --
> > > >                Tzafrir Cohen
> > > > icq#16849755              jabber:tzafrir.cohen@xorcom.com
> > > > +972-50-7952406           mailto:tzafrir.cohen@xorcom.com
> > > > http://www.xorcom.com
> > > iax:guest@local.xorcom.com/tzafrir
> > > >
> > > > _______________________________________________
> > > > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> > > >
> > > > asterisk-dev mailing list
> > > > To UNSUBSCRIBE or update options visit:
> > > >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> > > >
> > >
> > >
> > >
> > > --
> > > Eliel Sardaņons
> > > _______________________________________________
> > > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> > >
> > > asterisk-dev mailing list
> > > To UNSUBSCRIBE or update options visit:
> > >     http://lists.digium.com/mailman/listinfo/asterisk-dev
> > >
> >
> >
> > --
> > "Within C++, there is a much smaller and cleaner language struggling
> > to get out."
> >
> > _______________________________________________
> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> >
> > asterisk-dev mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-dev
> >
>
>
>
> --
> Eliel Sardaņons




-- 
Eliel Sardaņons

[Attachment #5 (text/html)]

The issue opened for this &quot;janitor&quot; is: \
0011096	<br><br>Thanks<br><br><div><span class="gmail_quote">On 10/25/07, <b \
class="gmail_sendername">Eliel Sardanons</b> &lt;<a \
href="mailto:eliel@eliel.com.ar">eliel@eliel.com.ar </a>&gt; wrote:</span><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">Ok \
Moises,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I will submit \
the first patch and open an issue to start working on this janitor. <div><span \
class="e" id="q_115d8c17b9f827d2_1"><br><br><br><br><div><span class="gmail_quote">On \
10/25/07, <b class="gmail_sendername">Moises Silva</b> &lt;<a \
href="mailto:moises.silva@gmail.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">

moises.silva@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;">Eliel,<br><br>Let us know if you open a bug in mantis for this in \
order to put <br>changes there as well.<br><br>Thanks<br><br>Moy<br><br>On 10/25/07, \
Eliel Sardanons &lt;<a href="mailto:eliel@eliel.com.ar" target="_blank" \
onclick="return top.js.OpenExtLink(window,event,this)">eliel@eliel.com.ar</a> &gt; \
wrote:<br>&gt; This are load_module()&#39;s return values, I am not changing \
nothing,&nbsp;&nbsp;this is <br>&gt; just the way &quot;it should be&quot;, read \
chan_sip.c&nbsp;&nbsp;and you will notice how<br>&gt; &#39;return \
AST_MODULE_LOAD_SUCCESS&#39; is being used.<br>&gt; But if you take a look at some \
modules (chan_gtalk.c), they don&#39;t use this <br>&gt; return values defined in the \
enum, they use just the values &quot;0, -1,1,2&quot; and<br>&gt; we should change \
everything to start using the names<br>&gt; AST_MODULE_LOAD_SUCCESS, *_DECLIE, \
*_SKIP, etc.<br>&gt;<br>

&gt; Sample:<br>&gt; - return 0;<br>&gt; + return \
AST_MODULE_LOAD_SUCCESS;<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 10/25/07, Tzafrir Cohen \
&lt;<a href="mailto:tzafrir.cohen@xorcom.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)"> tzafrir.cohen@xorcom.com</a> &gt; wrote:<br>
&gt; &gt; On Thu, Oct 25, 2007 at 02:09:02PM -0300, Eliel Sardanons wrote:<br>&gt; \
&gt; &gt; I think we could start a new janitor project to replace every \
&#39;return&#39;<br>&gt; on<br>&gt; &gt; &gt; load_module&#39;s with: <br>&gt; &gt; \
&gt;<br>&gt; &gt; &gt; enum ast_module_load_result {<br>&gt; &gt; \
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AST_MODULE_LOAD_SUCCESS = \
0,&nbsp;&nbsp;&nbsp;&nbsp;/*!&lt; Module loaded and<br>&gt; configured */<br>&gt; \
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AST_MODULE_LOAD_DECLINE = \
1,&nbsp;&nbsp;&nbsp;&nbsp;/*!&lt; Module is not configured */ <br>&gt; &gt; \
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AST_MODULE_LOAD_SKIP = \
2,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*!&lt; Module was skipped for some<br>&gt; \
&gt; &gt; reason */<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
AST_MODULE_LOAD_FAILURE = -1,&nbsp;&nbsp; /*!&lt; Module could not be loaded<br>&gt; \
&gt; &gt; properly */ <br>&gt; &gt; &gt; };<br>&gt; &gt;<br>&gt; &gt; What do those \
return values mean? Does a return value of -1 mean that<br>&gt; &gt; Asterisk should \
die?<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; \
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tzafrir \
Cohen <br>&gt; &gt; icq#16849755&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jabber:<a \
href="mailto:tzafrir.cohen@xorcom.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">tzafrir.cohen@xorcom.com</a><br>&gt; &gt; \
+972-50-7952406&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mailto: \
<a href="mailto:tzafrir.cohen@xorcom.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">tzafrir.cohen@xorcom.com </a><br>&gt; &gt; <a \
href="http://www.xorcom.com" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">http://www.xorcom.com</a><br>&gt; <a \
href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)"> \
iax:guest@local.xorcom.com/tzafrir</a><br>&gt; &gt;<br>&gt; &gt; \
_______________________________________________ <br>&gt; &gt; --Bandwidth and \
Colocation Provided by <a href="http://www.api-digital.com--" target="_blank" \
onclick="return top.js.OpenExtLink(window,event,this)">http://www.api-digital.com--</a><br>&gt; \
&gt;<br>&gt; &gt; asterisk-dev mailing list <br>&gt; &gt; To UNSUBSCRIBE or update \
options visit: <br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;<a \
href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank" \
onclick="return top.js.OpenExtLink(window,event,this)">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>&gt; \
&gt; <br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Eliel Sardaņons<br>&gt; \
_______________________________________________ <br>&gt; --Bandwidth and Colocation \
Provided by <a href="http://www.api-digital.com--" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">http://www.api-digital.com--</a><br>&gt;<br>&gt; \
asterisk-dev mailing list <br>&gt; To UNSUBSCRIBE or update options \
visit:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a \
href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank" \
onclick="return top.js.OpenExtLink(window,event,this)">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>&gt;<br><br><br>--<br>&quot;Within \
C++, there is a much smaller and cleaner language struggling <br>
to get out.&quot;<br><br>_______________________________________________<br>--Bandwidth \
and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank" \
onclick="return top.js.OpenExtLink(window,event,this)"> \
http://www.api-digital.com--</a><br><br>asterisk-dev mailing list<br> To UNSUBSCRIBE \
or update options visit:<br>&nbsp;&nbsp; <a \
href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank" \
onclick="return top.js.OpenExtLink(window,event,this)">http://lists.digium.com/mailman/listinfo/asterisk-dev
 </a><br></blockquote></div><br><br clear="all"><br></span></div><span class="sg">-- \
<br> Eliel Sardaņons
</span></blockquote></div><br><br clear="all"><br>-- <br>Eliel Sardaņons



_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic