Modify h323 to build against PTLib as well as the older PWLib
[asterisk/asterisk.git] / channels / h323 / compat_h323.h
index 5437898..5393835 100644 (file)
@@ -14,11 +14,11 @@ public:
        MyH323TransportTCP(
                H323EndPoint & endpoint,    ///<  H323 End Point object
                PIPSocket::Address binding = PIPSocket::GetDefaultIpAny(), ///<  Local interface to use
-               BOOL listen = FALSE         ///<  Flag for need to wait for remote to connect
+               PBoolean listen = FALSE         ///<  Flag for need to wait for remote to connect
        );
        /**Connect to the remote party.
         */
-       virtual BOOL Connect();
+       virtual PBoolean Connect();
 };
 #else
 #define MyH323TransportTCP H323TransportTCP
@@ -35,7 +35,7 @@ public:
                WORD remotePort = 0): H323TransportUDP(endpoint, binding, localPort, remotePort)
        {
        }
-       virtual BOOL DiscoverGatekeeper(H323Gatekeeper &,
+       virtual PBoolean DiscoverGatekeeper(H323Gatekeeper &,
                H323RasPDU &,
                const H323TransportAddress &);
 protected:
@@ -43,8 +43,8 @@ protected:
        H323Gatekeeper *discoverGatekeeper;
        H323RasPDU *discoverPDU;
        const H323TransportAddress *discoverAddress;
-       BOOL discoverResult;
-       BOOL discoverReady;
+       PBoolean discoverResult;
+       PBoolean discoverReady;
        PMutex discoverMutex;
 };