Changeset 75:1b7a0f00f4a0 in verona


Ignore:
Timestamp:
Feb 15, 2010 6:53:47 PM (3 years ago)
Author:
vadim@…
Branch:
default
Message:

Rename MY_DLLEXPORT to PHAPI_EXPORT

Location:
phapi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • phapi/phapi.c

    r73 r75  
    266266 
    267267 
    268 MY_DLLEXPORT phCallbacks_t *phcb; 
    269  
    270 MY_DLLEXPORT int phIsInitialized; 
    271  
    272 MY_DLLEXPORT int phDebugLevel = 0; 
    273 MY_DLLEXPORT char *phLogFileName = 0; 
     268PHAPI_EXPORT phCallbacks_t *phcb; 
     269 
     270PHAPI_EXPORT int phIsInitialized; 
     271 
     272PHAPI_EXPORT int phDebugLevel = 0; 
     273PHAPI_EXPORT char *phLogFileName = 0; 
    274274 
    275275 
     
    279279 
    280280unsigned short phCallBackPort = PH_CALLBACK_PORT;  
    281 MY_DLLEXPORT  unsigned short phServerPort = PH_SERVER_PORT;  
     281PHAPI_EXPORT  unsigned short phServerPort = PH_SERVER_PORT; 
    282282 
    283283static int ph_busyFlag; 
     
    402402 
    403403 
    404 MY_DLLEXPORT ph_config_t *ph_get_config() 
     404PHAPI_EXPORT ph_config_t *ph_get_config() 
    405405{ 
    406406  return &phcfg; 
     
    906906 
    907907 
    908 MY_DLLEXPORT int  
     908PHAPI_EXPORT int 
    909909phGetAudioVersion() 
    910910{ 
     
    932932}  
    933933 
    934 MY_DLLEXPORT int  
     934PHAPI_EXPORT int 
    935935phGetNatInfo(char *ntstr, int ntlen, char *fwip, int fwiplen) 
    936936{ 
     
    946946 
    947947 
    948 MY_DLLEXPORT int 
     948PHAPI_EXPORT int 
    949949phSetUaString(const char *uastr) 
    950950{ 
     
    954954 
    955955 
    956 MY_DLLEXPORT 
     956PHAPI_EXPORT 
    957957phAddCustomHeader(const char *reqnames, const char *hdrname,  const char *hdrval) 
    958958{ 
     
    10411041 
    10421042 
    1043 MY_DLLEXPORT int  
     1043PHAPI_EXPORT int 
    10441044phLinePlaceCall2(int vlid, const char *uri, void *userdata, int rcid, int streams) 
    10451045{ 
     
    10481048 
    10491049 
    1050 MY_DLLEXPORT int  
     1050PHAPI_EXPORT int 
    10511051phLinePlaceCall3(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev) 
    10521052{ 
     
    10541054} 
    10551055 
    1056 MY_DLLEXPORT int  
     1056PHAPI_EXPORT int 
    10571057phLinePlaceCall4(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, const char *audio_addr, const char *video_addr) 
    10581058{ 
     
    10621062 
    10631063 
    1064 MY_DLLEXPORT int  
     1064PHAPI_EXPORT int 
    10651065phLinePlaceMcCall(int vlid, const char *uri, void *userdata, int streams, const char *adev) 
    10661066{ 
     
    12291229 
    12301230 
    1231 MY_DLLEXPORT int  
     1231PHAPI_EXPORT int 
    12321232phLinePlaceCall(int vlid, const char *uri, void *userdata, int rcid) 
    12331233{ 
     
    12351235} 
    12361236 
    1237 MY_DLLEXPORT int 
     1237PHAPI_EXPORT int 
    12381238phLineSendMessage(int vlid, const char *uri, const char *buff, const char *mime) 
    12391239{ 
     
    12451245 
    12461246 
    1247 MY_DLLEXPORT int 
     1247PHAPI_EXPORT int 
    12481248phLineSendMessage2(int vlid, const char *target, const char *uri,  
    12491249                   const char *buff, const char *mime, const char *sipcid) 
     
    12851285} 
    12861286 
    1287 MY_DLLEXPORT int 
     1287PHAPI_EXPORT int 
    12881288phCallSendMessage(int cid, const char *buff, const char *mime) 
    12891289{ 
     
    13101310 
    13111311 
    1312 MY_DLLEXPORT int  
     1312PHAPI_EXPORT int 
    13131313phSendMessage(const char *from, const char *uri,  
    13141314                          const char *buff, const char *mime) 
     
    13291329 
    13301330 
    1331 MY_DLLEXPORT int  
     1331PHAPI_EXPORT int 
    13321332phLineSubscribe(int vlid, const char *uri, const int winfo) 
    13331333{ 
     
    13591359 
    13601360 
    1361 MY_DLLEXPORT int  
     1361PHAPI_EXPORT int 
    13621362phLineUnsubscribe(int vlid, const char *uri, const int winfo) 
    13631363{ 
     
    13921392 
    13931393 
    1394 MY_DLLEXPORT int 
     1394PHAPI_EXPORT int 
    13951395phSubscribe(const char *from, const char *to, const int winfo) 
    13961396{ 
     
    14121412 
    14131413 
    1414 MY_DLLEXPORT int  
     1414PHAPI_EXPORT int 
    14151415phLinePublish(int vlid, const char *uri, int winfo, const char * content_type, const char * content) 
    14161416{ 
     
    14201420 
    14211421 
    1422 MY_DLLEXPORT int  
     1422PHAPI_EXPORT int 
    14231423phLinePublish2(int vlid, const char *uri, const char *evt, const char *ctt, const char *body, int expires) 
    14241424{ 
     
    14651465}  
    14661466 
    1467 MY_DLLEXPORT int 
     1467PHAPI_EXPORT int 
    14681468phPublish(const char *from, const char *to, const int winfo, const char * content_type, const char * content) 
    14691469{ 
     
    14851485} 
    14861486 
    1487 MY_DLLEXPORT void 
     1487PHAPI_EXPORT void 
    14881488phRefresh() 
    14891489{ 
     
    14961496 
    14971497 
    1498 MY_DLLEXPORT int 
     1498PHAPI_EXPORT int 
    14991499phLineSendOptions(int vlid, const char *to) 
    15001500{ 
     
    15321532 
    15331533 
    1534 MY_DLLEXPORT int  
     1534PHAPI_EXPORT int 
    15351535phSendOptions(const char *from, const char *uri) 
    15361536{ 
     
    15551555 
    15561556 
    1557 MY_DLLEXPORT int  
     1557PHAPI_EXPORT int 
    15581558phAcceptCall2(int cid, void *userData) 
    15591559{ 
     
    15611561} 
    15621562 
    1563 MY_DLLEXPORT int  
     1563PHAPI_EXPORT int 
    15641564phAcceptCall3(int cid, void *userData, int streams) 
    15651565{ 
     
    16011601 
    16021602 
    1603 MY_DLLEXPORT int  
     1603PHAPI_EXPORT int 
    16041604phAcceptCall4(int cid, void *userData, int streams, const char *audio_addr, const char *video_addr) 
    16051605{ 
     
    17081708} 
    17091709 
    1710 MY_DLLEXPORT int  
     1710PHAPI_EXPORT int 
    17111711phAcceptMcCall(int cid, const char *adev, const char *audioaddr, int port) 
    17121712{ 
     
    17711771} 
    17721772 
    1773 MY_DLLEXPORT int  
     1773PHAPI_EXPORT int 
    17741774phAcceptMcCall2(int cid, int mcid) 
    17751775{ 
     
    18491849 
    18501850 
    1851 MY_DLLEXPORT int 
     1851PHAPI_EXPORT int 
    18521852phLineGetMobility(int vlid) 
    18531853{ 
     
    20972097 
    20982098 
    2099 MY_DLLEXPORT int  
     2099PHAPI_EXPORT int 
    21002100phAcceptCall5(int cid, void *userData, int streams, ...) 
    21012101{ 
     
    21272127 
    21282128 
    2129 MY_DLLEXPORT int  
     2129PHAPI_EXPORT int 
    21302130phRejectCall(int cid, int reason) 
    21312131{ 
     
    21502150} 
    21512151 
    2152 MY_DLLEXPORT int  
     2152PHAPI_EXPORT int 
    21532153phRejectCall2(int cid, const char *uri,int reason) 
    21542154{ 
     
    21752175 
    21762176 
    2177 MY_DLLEXPORT int  
     2177PHAPI_EXPORT int 
    21782178phRingingCall(int cid) 
    21792179{ 
     
    21922192 
    21932193 
    2194 MY_DLLEXPORT int  
     2194PHAPI_EXPORT int 
    21952195phCloseCall(int cid) 
    21962196{ 
     
    22492249 
    22502250 
    2251 MY_DLLEXPORT int phCallStartMedia(int cid, int streamFlags) 
     2251PHAPI_EXPORT int phCallStartMedia(int cid, int streamFlags) 
    22522252{ 
    22532253  int i; 
     
    22682268} 
    22692269 
    2270 MY_DLLEXPORT int  
     2270PHAPI_EXPORT int 
    22712271phBlindTransferCall(int cid, const char *uri) 
    22722272{ 
     
    22992299 
    23002300 
    2301 MY_DLLEXPORT int  
     2301PHAPI_EXPORT int 
    23022302phTransferCall(int cid, int tcid) 
    23032303{ 
     
    23432343 
    23442344 
    2345 MY_DLLEXPORT  int  
     2345PHAPI_EXPORT  int 
    23462346phSetContact(int vlid, const char *uri) 
    23472347{ 
     
    23492349} 
    23502350 
    2351 MY_DLLEXPORT  int  
     2351PHAPI_EXPORT  int 
    23522352phSetContact2(int vlid, const char *uri, int translate) 
    23532353{ 
     
    23872387 
    23882388 
    2389 MY_DLLEXPORT int  
     2389PHAPI_EXPORT int 
    23902390phConf(int cid1, int cid2) 
    23912391{ 
     
    24022402} 
    24032403 
    2404 MY_DLLEXPORT int  
     2404PHAPI_EXPORT int 
    24052405phStopConf(int cid1, int cid2) 
    24062406{ 
     
    24202420 
    24212421 
    2422 MY_DLLEXPORT int  
     2422PHAPI_EXPORT int 
    24232423phResumeCall(int cid) 
    24242424{ 
     
    24622462 
    24632463 
    2464 MY_DLLEXPORT int  
     2464PHAPI_EXPORT int 
    24652465phHoldCall(int cid) 
    24662466{ 
     
    24952495 
    24962496 
    2497 MY_DLLEXPORT int  
     2497PHAPI_EXPORT int 
    24982498phSetFollowMe(const char *uri) 
    24992499{ 
     
    25132513 
    25142514 
    2515 MY_DLLEXPORT int  
     2515PHAPI_EXPORT int 
    25162516phSetBusy(int busyFlag) 
    25172517{ 
     
    25212521 
    25222522 
    2523 MY_DLLEXPORT int  
     2523PHAPI_EXPORT int 
    25242524phLineSetFollowMe(int vlid, const char *uri) 
    25252525{ 
     
    25462546 
    25472547 
    2548 MY_DLLEXPORT int  
     2548PHAPI_EXPORT int 
    25492549phLineSetBusy(int vlid, int busyFlag) 
    25502550{ 
     
    25642564 
    25652565 
    2566 MY_DLLEXPORT int 
     2566PHAPI_EXPORT int 
    25672567phAddAuthInfo(const char *username, const char *userid, 
    25682568                               const char *passwd, const char *ha1, 
     
    26562656 
    26572657  
    2658 MY_DLLEXPORT int  
     2658PHAPI_EXPORT int 
    26592659phSendDtmf(int cid, int dtmfEvent, int mode) 
    26602660{ 
     
    27232723 
    27242724 
    2725 MY_DLLEXPORT int  
     2725PHAPI_EXPORT int 
    27262726phPlaySoundFile(const char *fileName , int loop) 
    27272727{ 
     
    27312731 
    27322732 
    2733 MY_DLLEXPORT int  
     2733PHAPI_EXPORT int 
    27342734phSendSoundFile(int cid, const char *fileName) 
    27352735{ 
     
    27512751 
    27522752 
    2753 MY_DLLEXPORT int  
     2753PHAPI_EXPORT int 
    27542754phStopSoundFile() 
    27552755{ 
     
    27582758 
    27592759 
    2760 MY_DLLEXPORT int  
     2760PHAPI_EXPORT int 
    27612761phSetSpeakerVolume(int cid,  int volume) 
    27622762{ 
     
    27742774 
    27752775 
    2776 MY_DLLEXPORT int  
     2776PHAPI_EXPORT int 
    27772777phSetRecLevel(int cid,  int level) 
    27782778{ 
     
    27922792 
    27932793 
    2794 MY_DLLEXPORT int  
     2794PHAPI_EXPORT int 
    27952795phAddVline(const char* username, const char *server, const char*  proxy,  int regTimeout) 
    27962796{ 
     
    28322832#define nonull(x) ((x) ? (x) : emptystr) 
    28332833 
    2834 MY_DLLEXPORT int 
     2834PHAPI_EXPORT int 
    28352835phAddVline2(const char *displayname, const char* username, const char *server, const char*  proxy,  int regTimeout) 
    28362836{ 
    28372837  return phAddVline3(displayname, username, server, proxy, regTimeout, 0); 
    28382838} 
    2839 MY_DLLEXPORT int 
     2839PHAPI_EXPORT int 
    28402840phAddVline3(const char *displayname, const char* username, const char *server, const char*  proxy,  int regTimeout, int mobility) 
    28412841 
     
    29542954 
    29552955 
    2956 MY_DLLEXPORT int  
     2956PHAPI_EXPORT int 
    29572957phDelVline(int vlid) 
    29582958{ 
     
    30013001 
    30023002 
    3003 MY_DLLEXPORT int phChangeAudioDevices(const char *devstr) 
     3003PHAPI_EXPORT int phChangeAudioDevices(const char *devstr) 
    30043004{ 
    30053005  if (devstr) 
     
    38593859   
    38603860   
    3861 MY_DLLEXPORT int 
     3861PHAPI_EXPORT int 
    38623862phCallGetSipCallID(int cid, char* buf, int bufsize)  
    38633863{ 
     
    38893889 
    38903890 
    3891 MY_DLLEXPORT int  
     3891PHAPI_EXPORT int 
    38923892phInit(phCallbacks_t *cbk, char * server, int asyncmode) 
    38933893{ 
     
    40544054 * terminate ph api 
    40554055 */ 
    4056 MY_DLLEXPORT void  
     4056PHAPI_EXPORT void 
    40574057phTerminate() 
    40584058{ 
     
    41284128 * poll for phApi events.c  
    41294129 */ 
    4130 MY_DLLEXPORT int 
     4130PHAPI_EXPORT int 
    41314131phPoll() 
    41324132{ 
     
    42074207 
    42084208 
    4209 MY_DLLEXPORT int phCallGetCodecs(int cid, char *audioCodecBuf, int aBufLen, char *videoCodecBuf, int vBufLen) 
     4209PHAPI_EXPORT int phCallGetCodecs(int cid, char *audioCodecBuf, int aBufLen, char *videoCodecBuf, int vBufLen) 
    42104210{ 
    42114211  phcall_t *ca = ph_locate_call_by_cid(cid); 
     
    42294229} 
    42304230 
    4231 MY_DLLEXPORT int  
     4231PHAPI_EXPORT int 
    42324232phCallGetMediaInfo(int cid, struct ph_confirmed_media_info *mi) 
    42334233{ 
     
    60206020 
    60216021#ifdef QOS_DEBUG_ENABLE 
    6022 MY_DLLEXPORT void phrtcp_QoS_enable_rtcp_report(int ToF) 
     6022PHAPI_EXPORT void phrtcp_QoS_enable_rtcp_report(int ToF) 
    60236023{ 
    60246024        ortcp_enable_rtcp_report(ToF); 
    60256025} 
    6026 MY_DLLEXPORT void phrtcp_report_set_cb(jt_rtcpCallbacks_t *cbk) 
     6026PHAPI_EXPORT void phrtcp_report_set_cb(jt_rtcpCallbacks_t *cbk) 
    60276027{ 
    60286028        ortcp_report_set_cb(cbk); 
    60296029} 
    6030 MY_DLLEXPORT int phrtcp_report_begin() 
     6030PHAPI_EXPORT int phrtcp_report_begin() 
    60316031{ 
    60326032        phrtcp_QoS_enable_rtcp_report(1); 
    60336033        ortcp_report_begin(); 
    60346034} 
    6035 MY_DLLEXPORT int phrtcp_report_end() 
     6035PHAPI_EXPORT int phrtcp_report_end() 
    60366036{ 
    60376037        ortcp_report_end(); 
  • phapi/phapi.h

    r74 r75  
    123123#ifdef WIN32 
    124124#if defined(BUILD_PHAPI_DLL) 
    125 #define MY_DLLEXPORT __declspec(dllexport)  
     125#define PHAPI_EXPORT __declspec(dllexport) 
    126126#elif defined(PHAPI_DLL) 
    127 #define MY_DLLEXPORT __declspec(dllimport)  
     127#define PHAPI_EXPORT __declspec(dllimport) 
    128128#endif 
    129129#endif 
    130130 
    131 #ifndef MY_DLLEXPORT 
    132 #define MY_DLLEXPORT  
     131#ifndef PHAPI_EXPORT 
     132#define PHAPI_EXPORT 
    133133#endif 
    134134 
     
    191191 * @return             -1 in case of error vlid  in case of success 
    192192 */ 
    193 MY_DLLEXPORT int phAddVline(const char* username, const char *host, const char*  proxy,  int regTimeout); 
    194 MY_DLLEXPORT int phAddVline2(const char* displayname, const char* username, const char *host, const char*  proxy, int regTimeout); 
    195 MY_DLLEXPORT int phAddVline3(const char* displayname, const char* username, const char *host, const char*  proxy, int regTimeout, int mobility); 
     193PHAPI_EXPORT int phAddVline(const char* username, const char *host, const char*  proxy,  int regTimeout); 
     194PHAPI_EXPORT int phAddVline2(const char* displayname, const char* username, const char *host, const char*  proxy, int regTimeout); 
     195PHAPI_EXPORT int phAddVline3(const char* displayname, const char* username, const char *host, const char*  proxy, int regTimeout, int mobility); 
    196196  
    197197/** 
     
    202202 * @return             0 in case of success 
    203203 */ 
    204 MY_DLLEXPORT int phDelVline(int vlid); 
     204PHAPI_EXPORT int phDelVline(int vlid); 
    205205 
    206206 
     
    242242 * @return             if positive the call id else error indication 
    243243 */ 
    244 MY_DLLEXPORT int phLinePlaceCall(int vlid, const char *uri, void *userData, int rcid); 
    245 MY_DLLEXPORT int phLinePlaceCall2(int vlid, const char *uri, void *userData, int rcid, int streams); 
    246 MY_DLLEXPORT int phLinePlaceCall4(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, const char *audio_addr, const char *video_addr); 
    247 MY_DLLEXPORT int phLinePlaceCall5(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, ...); 
     244PHAPI_EXPORT int phLinePlaceCall(int vlid, const char *uri, void *userData, int rcid); 
     245PHAPI_EXPORT int phLinePlaceCall2(int vlid, const char *uri, void *userData, int rcid, int streams); 
     246PHAPI_EXPORT int phLinePlaceCall4(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, const char *audio_addr, const char *video_addr); 
     247PHAPI_EXPORT int phLinePlaceCall5(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, ...); 
    248248 
    249249/** 
     
    253253 * @return             0 in case of success 
    254254 */ 
    255 MY_DLLEXPORT int phAcceptCall2(int cid, void *userData); 
    256 MY_DLLEXPORT int phAcceptCall3(int cid, void *userData, int streams); 
    257 MY_DLLEXPORT int phAcceptCall4(int cid, void *userData, int streams, const char *audio_addr, const char *video_addr); 
    258 MY_DLLEXPORT int phAcceptCall5(int cid, void *userData, int streams, ...); 
     255PHAPI_EXPORT int phAcceptCall2(int cid, void *userData); 
     256PHAPI_EXPORT int phAcceptCall3(int cid, void *userData, int streams); 
     257PHAPI_EXPORT int phAcceptCall4(int cid, void *userData, int streams, const char *audio_addr, const char *video_addr); 
     258PHAPI_EXPORT int phAcceptCall5(int cid, void *userData, int streams, ...); 
    259259 
    260260/* 
     
    266266 * @param port       port number for the audio stream 
    267267 */ 
    268 MY_DLLEXPORT int phAcceptMcCall(int cid, const char *adev, const char *audioaddr, int port); 
     268PHAPI_EXPORT int phAcceptMcCall(int cid, const char *adev, const char *audioaddr, int port); 
    269269 
    270270 
     
    276276 * @param port       port number for the audio stream 
    277277 */ 
    278 MY_DLLEXPORT int phAcceptMcCall2(int cid, int mcid); 
     278PHAPI_EXPORT int phAcceptMcCall2(int cid, int mcid); 
    279279 
    280280 
     
    289289 * @param adev         audio device for call 
    290290 */ 
    291 MY_DLLEXPORT int phLinePlaceMcCall(int vlid, const char *uri, void *userdata, int streams, const char *adev); 
     291PHAPI_EXPORT int phLinePlaceMcCall(int vlid, const char *uri, void *userdata, int streams, const char *adev); 
    292292 
    293293 
     
    304304 * @return             0 in case of success 
    305305 */ 
    306 MY_DLLEXPORT int phRejectCall(int cid, int reason); 
    307 MY_DLLEXPORT int phRejectCall2(int cid, const char *uri,int reason); 
     306PHAPI_EXPORT int phRejectCall(int cid, int reason); 
     307PHAPI_EXPORT int phRejectCall2(int cid, const char *uri,int reason); 
    308308 
    309309 
     
    314314 * @return             0 in case of success 
    315315 */ 
    316 MY_DLLEXPORT int phRingingCall(int cid); 
     316PHAPI_EXPORT int phRingingCall(int cid); 
    317317 
    318318/** 
     
    322322 * @return             0 in case of success 
    323323 */ 
    324 MY_DLLEXPORT int phCloseCall(int cid); 
     324PHAPI_EXPORT int phCloseCall(int cid); 
    325325 
    326326/** 
     
    331331 * @return             txid  used in the subsequent transferProgress callback 
    332332 */ 
    333 MY_DLLEXPORT int phBlindTransferCall(int cid, const char *uri); 
     333PHAPI_EXPORT int phBlindTransferCall(int cid, const char *uri); 
    334334 
    335335/** 
     
    340340 * @return             txid  used in the subsequent transferProgress callback 
    341341 */ 
    342 MY_DLLEXPORT int phTransferCall(int cid, int targetCid); 
     342PHAPI_EXPORT int phTransferCall(int cid, int targetCid); 
    343343 
    344344/** 
     
    348348 * @return             0 in case of success 
    349349 */ 
    350 MY_DLLEXPORT int phResumeCall(int cid); 
     350PHAPI_EXPORT int phResumeCall(int cid); 
    351351 
    352352/** 
     
    356356 * @return             0 in case of success 
    357357 */ 
    358 MY_DLLEXPORT int phHoldCall(int cid); 
    359  
    360  
    361  
    362 MY_DLLEXPORT int phCallStartMedia(int cid, int streamFlags); 
    363 MY_DLLEXPORT int phCallGetMediaInfo(int cid, struct ph_confirmed_media_info *mi); 
     358PHAPI_EXPORT int phHoldCall(int cid); 
     359 
     360 
     361 
     362PHAPI_EXPORT int phCallStartMedia(int cid, int streamFlags); 
     363PHAPI_EXPORT int phCallGetMediaInfo(int cid, struct ph_confirmed_media_info *mi); 
    364364 
    365365/** 
     
    370370 * @param  bufsize size of te idbuf 
    371371 */ 
    372 MY_DLLEXPORT int phCallGetSipCallID(int cid, char *idbuf,  int bufsize); 
     372PHAPI_EXPORT int phCallGetSipCallID(int cid, char *idbuf,  int bufsize); 
    373373 
    374374 
     
    386386 
    387387 
    388 MY_DLLEXPORT int phLineSetFollowMe(int vlid, const char *uri); 
     388PHAPI_EXPORT int phLineSetFollowMe(int vlid, const char *uri); 
    389389 
    390390/** 
     
    395395 * @return             0 in case of success 
    396396 */ 
    397 MY_DLLEXPORT int phLineSetBusy(int vlid, int busyFlag); 
     397PHAPI_EXPORT int phLineSetBusy(int vlid, int busyFlag); 
    398398 
    399399 
     
    415415 * @return  if positive msgid 
    416416*/ 
    417 MY_DLLEXPORT int phLineSendMessage(int vlid, const char *uri,  
     417PHAPI_EXPORT int phLineSendMessage(int vlid, const char *uri, 
    418418                                   const char *buff, const char *mime); 
    419 MY_DLLEXPORT int phLineSendMessage2(int vlid, const char *target, const char *uri,  
     419PHAPI_EXPORT int phLineSendMessage2(int vlid, const char *target, const char *uri, 
    420420                                   const char *buff, const char *mime,  
    421421                                    const char *sipcid); 
    422 MY_DLLEXPORT int phCallSendMessage(int cid, const char *buff, const char *mime); 
     422PHAPI_EXPORT int phCallSendMessage(int cid, const char *buff, const char *mime); 
    423423 
    424424 
     
    443443 * @return 0 if success else -1 
    444444*/ 
    445 MY_DLLEXPORT int phLineSubscribe(int vlid, const char *to, const int winfo); 
     445PHAPI_EXPORT int phLineSubscribe(int vlid, const char *to, const int winfo); 
    446446 
    447447/** 
     
    453453 * @return 0 if success else -1 
    454454*/ 
    455 MY_DLLEXPORT int phLineUnsubscribe(int vlid, const char *to, const int winfo); 
     455PHAPI_EXPORT int phLineUnsubscribe(int vlid, const char *to, const int winfo); 
    456456 
    457457/** 
     
    467467 * @return 0 if success else -1 
    468468*/ 
    469 MY_DLLEXPORT int phLinePublish(int vlid, const char *to, const int winfo, const char * content_type, const char * content); 
    470 MY_DLLEXPORT int phLinePublish2(int vlid, const char *to, const char *evt, const char * content_type, const char * content, 
     469PHAPI_EXPORT int phLinePublish(int vlid, const char *to, const int winfo, const char * content_type, const char * content); 
     470PHAPI_EXPORT int phLinePublish2(int vlid, const char *to, const char *evt, const char * content_type, const char * content, 
    471471                                int expires); 
    472472 
     
    493493#define PH_DTMF_MODE_SIP 4        
    494494#define PH_DTMF_MODE_SIPRELAY 8   
    495 MY_DLLEXPORT int phSendDtmf(int cid, int dtmfChar, int mode); 
     495PHAPI_EXPORT int phSendDtmf(int cid, int dtmfChar, int mode); 
    496496 
    497497/** 
     
    503503 * @return             0 in case of success 
    504504 */ 
    505 MY_DLLEXPORT int phPlaySoundFile(const char *fileName , int loop); 
     505PHAPI_EXPORT int phPlaySoundFile(const char *fileName , int loop); 
    506506 
    507507/** 
     
    510510 * @return             0 in case of success 
    511511 */ 
    512 MY_DLLEXPORT int phStopSoundFile( void ); 
     512PHAPI_EXPORT int phStopSoundFile( void ); 
    513513 
    514514/** 
     
    520520 * @return             0 in case of success 
    521521 */ 
    522 MY_DLLEXPORT int phSendSoundFile(int cid, const char *fileName); 
     522PHAPI_EXPORT int phSendSoundFile(int cid, const char *fileName); 
    523523 
    524524/** 
     
    529529 * @return             0 in case of success 
    530530 */ 
    531 MY_DLLEXPORT int phSetSpeakerVolume(int cid,  int volume); 
     531PHAPI_EXPORT int phSetSpeakerVolume(int cid,  int volume); 
    532532 
    533533/** 
     
    538538 * @return             0 in case of success 
    539539 */ 
    540 MY_DLLEXPORT int phSetRecLevel(int cid,  int level); 
     540PHAPI_EXPORT int phSetRecLevel(int cid,  int level); 
    541541 
    542542/** 
     
    549549 *  
    550550 */ 
    551 MY_DLLEXPORT int phChangeAudioDevices(const char *devstr); 
     551PHAPI_EXPORT int phChangeAudioDevices(const char *devstr); 
    552552 
    553553 
     
    559559 * @return      0 if succeeds, an error value otherwise 
    560560 */ 
    561 MY_DLLEXPORT int  phSetUaString(const char *uastr); 
     561PHAPI_EXPORT int  phSetUaString(const char *uastr); 
    562562 
    563563 
     
    569569  * @return     0 if succeeds, an error value otherwise 
    570570  */   
    571 MY_DLLEXPORT int phAddCustomHeader(const char *reqnames, const char *hdrname,  const char *hdrval); 
     571PHAPI_EXPORT int phAddCustomHeader(const char *reqnames, const char *hdrname,  const char *hdrval); 
    572572 
    573573 
     
    594594 * 
    595595 */ 
    596 MY_DLLEXPORT int phConfCreate(int cid); 
     596PHAPI_EXPORT int phConfCreate(int cid); 
    597597 
    598598/** 
     
    604604 * 
    605605 */ 
    606 MY_DLLEXPORT int phLineConfInvite(int vlid, int cfid, const char *uri); 
     606PHAPI_EXPORT int phLineConfInvite(int vlid, int cfid, const char *uri); 
    607607 
    608608/** 
     
    615615 * 
    616616 */ 
    617 MY_DLLEXPORT int phConfAddMember(int cfid, int callid); 
     617PHAPI_EXPORT int phConfAddMember(int cfid, int callid); 
    618618 
    619619/** 
     
    628628 * 
    629629 */ 
    630 MY_DLLEXPORT int phConfRemoveMember(int cfid, int cid); 
     630PHAPI_EXPORT int phConfRemoveMember(int cfid, int cid); 
    631631 
    632632/** 
     
    639639 * 
    640640 */ 
    641 MY_DLLEXPORT int phConfClose(int cfid); 
     641PHAPI_EXPORT int phConfClose(int cfid); 
    642642 
    643643 
     
    652652 * 
    653653 */  
    654 MY_DLLEXPORT int phConf(int cid1, int cid2); 
     654PHAPI_EXPORT int phConf(int cid1, int cid2); 
    655655 
    656656/** 
     
    662662 * 
    663663 */  
    664 MY_DLLEXPORT int phStopConf(int cid1, int cid2); 
     664PHAPI_EXPORT int phStopConf(int cid1, int cid2); 
    665665 
    666666 
     
    678678 * 
    679679 */  
    680 MY_DLLEXPORT  int phSetContact(int vlid, const char *uri); 
    681 MY_DLLEXPORT  int phSetContact2(int vlid, const char *uri, int translate); 
     680PHAPI_EXPORT  int phSetContact(int vlid, const char *uri); 
     681PHAPI_EXPORT  int phSetContact2(int vlid, const char *uri, int translate); 
    682682 
    683683 
     
    690690 * @return --  0 in case of success 
    691691*/ 
    692 MY_DLLEXPORT int phLineGetSipAddress(int vlid, char buf[], int bufsize); 
     692PHAPI_EXPORT int phLineGetSipAddress(int vlid, char buf[], int bufsize); 
    693693 
    694694/** 
     
    699699 * @param to    --  uri to put in the To: header 
    700700*/ 
    701 MY_DLLEXPORT int phLineSendOptions(int vlid, const char *to); 
     701PHAPI_EXPORT int phLineSendOptions(int vlid, const char *to); 
    702702 
    703703/** 
     
    711711 * 
    712712 */ 
    713 MY_DLLEXPORT int phGetNatInfo(char *natType, int ntlen, char *fwip, int fwiplen); 
     713PHAPI_EXPORT int phGetNatInfo(char *natType, int ntlen, char *fwip, int fwiplen); 
    714714 
    715715enum ph_line_mobility 
     
    729729 * 
    730730 */ 
    731 MY_DLLEXPORT int phLineGetMobility(int vlid); 
     731PHAPI_EXPORT int phLineGetMobility(int vlid); 
    732732 
    733733 
     
    744744 */ 
    745745 
    746 MY_DLLEXPORT int phCallGetCodecs(int cid, char *audioCodecBuf, int aBufLen, char *videoCodecBuf, int vBufLen);  
     746PHAPI_EXPORT int phCallGetCodecs(int cid, char *audioCodecBuf, int aBufLen, char *videoCodecBuf, int vBufLen); 
    747747 
    748748 
     
    751751 * @brief Try to crash the application  
    752752*/ 
    753 MY_DLLEXPORT int phCrash(); 
     753PHAPI_EXPORT int phCrash(); 
    754754 
    755755 
     
    934934 *  
    935935 */ 
    936 MY_DLLEXPORT extern phCallbacks_t *phcb; 
     936PHAPI_EXPORT extern phCallbacks_t *phcb; 
    937937 
    938938/** 
     
    949949 *                     in client/server mode this parameter has client local meaning. 
    950950 */ 
    951 MY_DLLEXPORT int phInit(phCallbacks_t *cbk, char *server, int asyncmode); 
     951PHAPI_EXPORT int phInit(phCallbacks_t *cbk, char *server, int asyncmode); 
    952952 
    953953/** 
    954954 *  Terminate phApi 
    955955 */ 
    956 MY_DLLEXPORT void phTerminate( void ); 
     956PHAPI_EXPORT void phTerminate( void ); 
    957957 
    958958/** 
     
    968968 * @return             0 in case of success 
    969969 */ 
    970 MY_DLLEXPORT int phAddAuthInfo(const char *username, const char *userid, 
     970PHAPI_EXPORT int phAddAuthInfo(const char *username, const char *userid, 
    971971              const char *passwd, const char *ha1, 
    972972              const char *realm); 
     
    986986 *                                                                      setup a tunnel with given parameters. 
    987987*/ 
    988 MY_DLLEXPORT int phTunnelConfig(const char* http_proxy, const int http_proxy_port, 
     988PHAPI_EXPORT int phTunnelConfig(const char* http_proxy, const int http_proxy_port, 
    989989                                                                const char* httpt_server, const int httpt_server_port,  
    990990                                                                const char *proxy_user, const char* proxy_passwd, 
     
    996996                 0 : Otherwise 
    997997*/ 
    998 MY_DLLEXPORT extern int phIsInitialized; 
     998PHAPI_EXPORT extern int phIsInitialized; 
    999999 
    10001000/** 
     
    10041004 * 
    10051005 */ 
    1006 MY_DLLEXPORT int phGetVersion(void); 
     1006PHAPI_EXPORT int phGetVersion(void); 
    10071007 
    10081008/** 
    10091009 * poll for phApi events 
    10101010 */ 
    1011 MY_DLLEXPORT int phPoll( void ); 
     1011PHAPI_EXPORT int phPoll( void ); 
    10121012 
    10131013 
     
    10151015 * Set debugging level (between 0 and 9) 
    10161016 */ 
    1017 MY_DLLEXPORT void phSetDebugLevel(int); 
    1018 MY_DLLEXPORT int  phGetDebugLevel(); 
     1017PHAPI_EXPORT void phSetDebugLevel(int); 
     1018PHAPI_EXPORT int  phGetDebugLevel(); 
    10191019 
    10201020 
     
    10221022 * Define log file name 
    10231023 */ 
    1024 MY_DLLEXPORT void phSetLogFileName(const char *name); 
     1024PHAPI_EXPORT void phSetLogFileName(const char *name); 
    10251025 
    10261026 
     
    10281028 * Internal function. Do a register for all virtual lines 
    10291029 */ 
    1030 MY_DLLEXPORT void phRefresh(void); 
     1030PHAPI_EXPORT void phRefresh(void); 
    10311031 
    10321032/** 
    10331033 * In the case of rpc mode, the phapi server port 
    10341034 */ 
    1035 MY_DLLEXPORT extern unsigned short phServerPort; 
     1035PHAPI_EXPORT extern unsigned short phServerPort; 
    10361036 
    10371037 
     
    10471047/********************VIDEO*********************/ 
    10481048 
    1049 MY_DLLEXPORT int  phVideoControlChangeFps(int callid, int fps); 
    1050 MY_DLLEXPORT int  phVideoControlChangeQuality(int callid, int quality); 
    1051 MY_DLLEXPORT int  phVideoControlSetCameraFlip(int flip); 
    1052 MY_DLLEXPORT int  phVideoControlSetWebcamCaptureResolution(int width, int height); 
    1053 MY_DLLEXPORT int  phVideoControlSetBitrate(int callid, int maxrate, int minrate); 
    1054 MY_DLLEXPORT void phVideoControlCodecSet(int, struct ph_videocodecconfig_s *); 
    1055 MY_DLLEXPORT void phVideoControlCodecGet(int, struct ph_videocodecconfig_s *); 
     1049PHAPI_EXPORT int  phVideoControlChangeFps(int callid, int fps); 
     1050PHAPI_EXPORT int  phVideoControlChangeQuality(int callid, int quality); 
     1051PHAPI_EXPORT int  phVideoControlSetCameraFlip(int flip); 
     1052PHAPI_EXPORT int  phVideoControlSetWebcamCaptureResolution(int width, int height); 
     1053PHAPI_EXPORT int  phVideoControlSetBitrate(int callid, int maxrate, int minrate); 
     1054PHAPI_EXPORT void phVideoControlCodecSet(int, struct ph_videocodecconfig_s *); 
     1055PHAPI_EXPORT void phVideoControlCodecGet(int, struct ph_videocodecconfig_s *); 
    10561056 
    10571057 
     
    11351135 */ 
    11361136 
    1137 MY_DLLEXPORT ph_config_t *ph_get_config(); 
     1137PHAPI_EXPORT ph_config_t *ph_get_config(); 
    11381138 
    11391139 
    11401140/* JT */ 
    11411141#ifdef QOS_DEBUG_ENABLE 
    1142 MY_DLLEXPORT void phrtcp_QoS_enable_rtcp_report(int ToF); 
    1143 MY_DLLEXPORT void phrtcp_report_set_cb(jt_rtcpCallbacks_t *cbk); 
    1144 MY_DLLEXPORT int phrtcp_report_begin(); 
    1145 MY_DLLEXPORT int phrtcp_report_end(); 
     1142PHAPI_EXPORT void phrtcp_QoS_enable_rtcp_report(int ToF); 
     1143PHAPI_EXPORT void phrtcp_report_set_cb(jt_rtcpCallbacks_t *cbk); 
     1144PHAPI_EXPORT int phrtcp_report_begin(); 
     1145PHAPI_EXPORT int phrtcp_report_end(); 
    11461146#endif /* QOS_DEBUG_ENABLE */ 
    11471147 
Note: See TracChangeset for help on using the changeset viewer.