Hi,

> 1) What branches are you using for development?  (other than "main")

sipXtapi-media-update


> 2) Will a consistent change of these typedefs on all active branches
> interfere with contemplated merges?

If it is possible signed types if more preffered for .NET Framework.
I use sipXtapi from .NET Framework application through mixed DLL
(managed/unmanaged wrapper). In my case it is important what all
interface (external) types is signed because I can use that types as
CLI compatible without transformation. If used unsigned int I must
convert it for compatibility (preferable to simple type) and I am
worry about information lost.

For example, SIPX_LINE is unsigned int and I does convert it to
IntPtr:


SipxResult
SipxLine::SipxLineAdd(IntPtr instanceHandle, 
                                          String^ fromIdentity, 
                                          IntPtr% lineHandle, 
                                          int contactid)
{
    //SIPXTAPI_API SIPX_RESULT sipxLineAdd(const SIPX_INST hInst,
    //                                 const char* szLineURL,
    //                                 SIPX_LINE* phLine,
    //                                 SIPX_CONTACT_ID contactId = 0) ;
        SipxResult MySipxResult = SipxResult::Failure;
        SIPX_LINE hLine = NULL;
        char* szLineURL = 
(char*)Marshal::StringToHGlobalAnsi(fromIdentity).ToPointer(); 
        MySipxResult = (SipxResult)sipxLineAdd((SIPX_INST)instanceHandle, 
szLineURL, &hLine, contactid);
        Marshal::FreeHGlobal((IntPtr)szLineURL);
        IntPtr line((int)hLine); 
        lineHandle = line;
        return MySipxResult;
}



-- 
Best regards,
Victor Romanchuk


_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to