summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2009-07-14 13:45:52 +0000
committerNanang Izzuddin <nanang@teluu.com>2009-07-14 13:45:52 +0000
commit1ed64f09428fb1f9a45941c7e102347ff3ab84d6 (patch)
treee86f6bf3967aca427cac44cf1a6ee71acb3c1478 /pjmedia
parent72c50a1b183c5e993a27fac51c72b60a8bdb8bf7 (diff)
Ticket #918: Added C compatible declarations in modules: G.711, transport SRTP, libresample.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2832 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia/g711.c1
-rw-r--r--pjmedia/src/pjmedia/transport_srtp.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia/g711.c b/pjmedia/src/pjmedia/g711.c
index a2832459..11e5d416 100644
--- a/pjmedia/src/pjmedia/g711.c
+++ b/pjmedia/src/pjmedia/g711.c
@@ -20,6 +20,7 @@
/* This file contains file from Sun Microsystems, Inc, with the complete
* notice in the second half of this file.
*/
+#include <pjmedia/g711.h>
#include <pjmedia/codec.h>
#include <pjmedia/alaw_ulaw.h>
#include <pjmedia/endpoint.h>
diff --git a/pjmedia/src/pjmedia/transport_srtp.c b/pjmedia/src/pjmedia/transport_srtp.c
index 1a270245..d2bc2780 100644
--- a/pjmedia/src/pjmedia/transport_srtp.c
+++ b/pjmedia/src/pjmedia/transport_srtp.c
@@ -215,6 +215,13 @@ static pjmedia_transport_op transport_srtp_op =
&transport_destroy
};
+/* This function may also be used by other module, e.g: pjmedia/errno.c,
+ * it should have C compatible declaration.
+ */
+PJ_BEGIN_DECL
+ const char* get_libsrtp_errstr(int err);
+PJ_END_DECL
+
const char* get_libsrtp_errstr(int err)
{
#if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0)