Changeset 2832


Ignore:
Timestamp:
Jul 14, 2009 1:45:52 PM (15 years ago)
Author:
nanang
Message:

Ticket #918: Added C compatible declarations in modules: G.711, transport SRTP, libresample.

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/g711.c

    r2760 r2832  
    2121 * notice in the second half of this file. 
    2222 */ 
     23#include <pjmedia/g711.h> 
    2324#include <pjmedia/codec.h> 
    2425#include <pjmedia/alaw_ulaw.h> 
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c

    r2726 r2832  
    216216}; 
    217217 
     218/* This function may also be used by other module, e.g: pjmedia/errno.c, 
     219 * it should have C compatible declaration. 
     220 */ 
     221PJ_BEGIN_DECL 
     222    const char* get_libsrtp_errstr(int err); 
     223PJ_END_DECL 
     224 
    218225const char* get_libsrtp_errstr(int err) 
    219226{ 
  • pjproject/trunk/third_party/resample/include/resamplesubs.h

    r1232 r2832  
    1414#endif 
    1515 
     16#ifdef __cplusplus 
     17extern "C" 
     18{ 
     19#endif 
     20 
    1621DECL(int) res_SrcLinear(const RES_HWORD X[], RES_HWORD Y[],  
    1722                        double pFactor, RES_UHWORD nx); 
     
    2025DECL(int) res_GetXOFF(double pFactor, RES_BOOL LargeF); 
    2126 
     27#ifdef __cplusplus 
     28} 
     29#endif 
    2230 
    2331#endif 
Note: See TracChangeset for help on using the changeset viewer.