<h1>Project "FreeSWITCH Source" received a push.</h1>
<h2>branch: master updated</h2>
<pre>
via: 155571d841effd7411686952da0d679af34bc0ac (commit)
from: e1c17cffe0bfbf7c50a02acc9384679ef283a96b (commit)
</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Moises Silva
comments:
freetdm: fix ftdm error mapping to unix-style errors
<span style="color: #000080; font-weight: bold">diff --git a/libs/freetdm/src/include/ftdm_declare.h b/libs/freetdm/src/include/ftdm_declare.h</span>
<span style="color: #000080; font-weight: bold">index 88a7693..b443f2d 100644</span>
<span style="color: #A00000">--- a/libs/freetdm/src/include/ftdm_declare.h</span>
<span style="color: #00A000">+++ b/libs/freetdm/src/include/ftdm_declare.h</span>
<span style="color: #800080; font-weight: bold">@@ -178,18 +178,20 @@ typedef int ftdm_socket_t;</span>
/*! \brief FreeTDM APIs possible return codes */
typedef enum {
        FTDM_SUCCESS, /*!< Success */
<span style="color: #A00000">-        FTDM_FAIL, /*!< Failure, generic error return code, use ftdm_channel_get_last_error or ftdm_span_get_last_error for details */</span>
<span style="color: #A00000">-        FTDM_MEMERR, /*!< Memory error, most likely allocation failure */</span>
<span style="color: #00A000">+        FTDM_FAIL, /*!< Failure, generic error return code when no more specific return code can be used */</span>
<span style="color: #00A000">+</span>
<span style="color: #00A000">+        FTDM_MEMERR, /*!< Allocation failure */</span>
<span style="color: #00A000">+        FTDM_ENOMEM = FTDM_MEMERR,</span>
<span style="color: #00A000">+</span>
        FTDM_TIMEOUT, /*!< Operation timed out (ie: polling on a device)*/
<span style="color: #00A000">+        FTDM_ETIMEDOUT = FTDM_TIMEOUT,</span>
<span style="color: #00A000">+</span>
        FTDM_NOTIMPL, /*!< Operation not implemented */
<span style="color: #00A000">+        FTDM_ENOSYS = FTDM_NOTIMPL, /*!< The function is not implemented */</span>
<span style="color: #00A000">+</span>
        FTDM_BREAK, /*!< Request the caller to perform a break (context-dependant, ie: stop getting DNIS/ANI) */
        /*!< Any new return codes should try to mimc unix style error codes, no need to reinvent */
<span style="color: #A00000">-        /* Remapping some of the codes that were before */</span>
<span style="color: #A00000">-        FTDM_ENOMEM = FTDM_MEMERR, /*!< Memory error */</span>
<span style="color: #A00000">-        FTDM_ETIMEDOUT = FTDM_TIMEOUT, /*!< Operation timedout */</span>
<span style="color: #A00000">-        FTDM_ENOSYS = FTDM_NOTIMPL, /*!< The function is not implemented */</span>
<span style="color: #A00000">-</span>
        FTDM_EINVAL, /*!< Invalid argument */
        FTDM_ECANCELED, /*!< Operation cancelled */
        FTDM_EBUSY, /*!< Device busy */
</pre></div>
========================================================================<pre>
Summary of changes:
libs/freetdm/src/include/ftdm_declare.h | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
</pre>
<p>this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email<br />
For more info, see <a href="http://blog.chomperstomp.com/?p=630">http://blog.chomperstomp.com/?p=630</a>
-- <br />
FreeSWITCH Source</p>